mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[WIN32K:NTUSER] Handle IntCloneMenu failure in MENU_GetSystemMenu. CORE-12180
This commit is contained in:
@@ -5120,6 +5120,12 @@ PMENU FASTCALL MENU_GetSystemMenu(PWND Window, PMENU Popup)
|
||||
IntMenuItemInfo(Menu, SC_MINIMIZE, FALSE, &ItemInfoSet, TRUE, NULL);
|
||||
|
||||
NewMenu = IntCloneMenu(Menu);
|
||||
if (NewMenu == NULL)
|
||||
{
|
||||
IntDestroyMenuObject(Menu, FALSE);
|
||||
IntDestroyMenuObject(SysMenu, FALSE);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
IntReleaseMenuObject(NewMenu);
|
||||
UserSetMenuDefaultItem(NewMenu, SC_CLOSE, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user