Skip to content

Commit 52fbc79

Browse files
committed
[User32]
- Fixed get menu info, check parameters first than the handle. See CORE-8064. svn path=/trunk/; revision=62747
1 parent b07e61e commit 52fbc79

File tree

1 file changed

+3
-3
lines changed
  • reactos/win32ss/user/user32/windows

1 file changed

+3
-3
lines changed

reactos/win32ss/user/user32/windows/menu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4269,15 +4269,15 @@ GetMenuInfo(HMENU hmenu,
42694269
BOOL res = FALSE;
42704270
PVOID pMenu;
42714271

4272-
if (!(pMenu = ValidateHandle(hmenu, TYPE_MENU)))
4273-
return FALSE;
4274-
42754272
if (!lpcmi || (lpcmi->cbSize != sizeof(MENUINFO)))
42764273
{
42774274
SetLastError(ERROR_INVALID_PARAMETER);
42784275
return FALSE;
42794276
}
42804277

4278+
if (!(pMenu = ValidateHandle(hmenu, TYPE_MENU)))
4279+
return FALSE;
4280+
42814281
RtlZeroMemory(&mi, sizeof(MENUINFO));
42824282
mi.cbSize = sizeof(MENUINFO);
42834283
mi.fMask = lpcmi->fMask;

0 commit comments

Comments
 (0)