mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[User32]
- Fixed get menu info, check parameters first than the handle. See CORE-8064. svn path=/trunk/; revision=62747
This commit is contained in:
parent
b07e61e478
commit
52fbc79cd6
1 changed files with 3 additions and 3 deletions
|
@ -4269,15 +4269,15 @@ GetMenuInfo(HMENU hmenu,
|
|||
BOOL res = FALSE;
|
||||
PVOID pMenu;
|
||||
|
||||
if (!(pMenu = ValidateHandle(hmenu, TYPE_MENU)))
|
||||
return FALSE;
|
||||
|
||||
if (!lpcmi || (lpcmi->cbSize != sizeof(MENUINFO)))
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!(pMenu = ValidateHandle(hmenu, TYPE_MENU)))
|
||||
return FALSE;
|
||||
|
||||
RtlZeroMemory(&mi, sizeof(MENUINFO));
|
||||
mi.cbSize = sizeof(MENUINFO);
|
||||
mi.fMask = lpcmi->fMask;
|
||||
|
|
Loading…
Reference in a new issue