mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- Fix a crash in SetMenuInfo.
svn path=/trunk/; revision=42934
This commit is contained in:
@@ -4993,8 +4993,12 @@ SetMenuInfo(
|
||||
{
|
||||
ROSMENUINFO mi;
|
||||
BOOL res = FALSE;
|
||||
if(lpcmi->cbSize != sizeof(MENUINFO))
|
||||
|
||||
if (!lpcmi || (lpcmi->cbSize != sizeof(MENUINFO)))
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return res;
|
||||
}
|
||||
|
||||
memcpy(&mi, lpcmi, sizeof(MENUINFO));
|
||||
return NtUserMenuInfo(hmenu, &mi, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user