mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32K:NTUSER] Safely handle allocation failure in IntCloneMenu. CORE-14222
This commit is contained in:
parent
1969094028
commit
b030836b40
1 changed files with 2 additions and 1 deletions
|
@ -815,6 +815,7 @@ IntCloneMenuItems(PMENU Destination, PMENU Source)
|
|||
NewMenuItem->Xlpstr = NewMenuItem->lpstr.Buffer;
|
||||
}
|
||||
NewMenuItem->hbmp = MenuItem->hbmp;
|
||||
Destination->cItems = i + 1;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -847,7 +848,7 @@ IntCloneMenu(PMENU Source)
|
|||
Menu->spwndNotify = NULL;
|
||||
Menu->cyMenu = 0;
|
||||
Menu->cxMenu = 0;
|
||||
Menu->cItems = Source->cItems;
|
||||
Menu->cItems = 0;
|
||||
Menu->iTop = 0;
|
||||
Menu->iMaxTop = 0;
|
||||
Menu->cxTextAlign = 0;
|
||||
|
|
Loading…
Reference in a new issue