Add an extra case to check GetMenuInfo is not called with a NULL lpcmi, and SetLastError before returning