mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[WIN32K:NTUSER] Handle allocation failure in PopupMenuWndProc. CORE-14222
This commit is contained in:
parent
a9ba7a3f9e
commit
c464f4f2e3
1 changed files with 4 additions and 0 deletions
|
@ -4436,6 +4436,10 @@ PopupMenuWndProc(
|
|||
}
|
||||
Wnd->fnid = FNID_MENU;
|
||||
pPopupMenu = DesktopHeapAlloc( Wnd->head.rpdesk, sizeof(POPUPMENU) );
|
||||
if (pPopupMenu == NULL)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
pPopupMenu->posSelectedItem = NO_SELECTED_ITEM;
|
||||
pPopupMenu->spwndPopupMenu = Wnd;
|
||||
((PMENUWND)Wnd)->ppopupmenu = pPopupMenu;
|
||||
|
|
Loading…
Reference in a new issue