We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b07e61e commit 52fbc79Copy full SHA for 52fbc79
reactos/win32ss/user/user32/windows/menu.c
@@ -4269,15 +4269,15 @@ GetMenuInfo(HMENU hmenu,
4269
BOOL res = FALSE;
4270
PVOID pMenu;
4271
4272
- if (!(pMenu = ValidateHandle(hmenu, TYPE_MENU)))
4273
- return FALSE;
4274
-
4275
if (!lpcmi || (lpcmi->cbSize != sizeof(MENUINFO)))
4276
{
4277
SetLastError(ERROR_INVALID_PARAMETER);
4278
return FALSE;
4279
}
4280
+ if (!(pMenu = ValidateHandle(hmenu, TYPE_MENU)))
+ return FALSE;
+
4281
RtlZeroMemory(&mi, sizeof(MENUINFO));
4282
mi.cbSize = sizeof(MENUINFO);
4283
mi.fMask = lpcmi->fMask;
0 commit comments