mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WIN32K:NTUSER] Handle IntCloneMenu failure in MENU_GetSystemMenu. CORE-12180
This commit is contained in:
parent
ede8794c4b
commit
89217e3df5
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue