mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user