mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32K:NTUSER] Acquire the user lock exclusively in NtUserGetSystemMenu. CORE-15512
This commit is contained in:
parent
0013b0f71c
commit
c526f94b8c
1 changed files with 3 additions and 1 deletions
|
@ -274,6 +274,7 @@ BOOL IntDestroyMenu( PMENU pMenu, BOOL bRecurse)
|
|||
{
|
||||
PMENU SubMenu;
|
||||
|
||||
ASSERT(UserIsEnteredExclusive());
|
||||
if (pMenu->rgItems) /* recursively destroy submenus */
|
||||
{
|
||||
int i;
|
||||
|
@ -319,6 +320,7 @@ UserDestroyMenuObject(PVOID Object)
|
|||
BOOL FASTCALL
|
||||
IntDestroyMenuObject(PMENU Menu, BOOL bRecurse)
|
||||
{
|
||||
ASSERT(UserIsEnteredExclusive());
|
||||
if (Menu)
|
||||
{
|
||||
PWND Window;
|
||||
|
@ -5485,7 +5487,7 @@ NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
|
|||
DECLARE_RETURN(HMENU);
|
||||
|
||||
TRACE("Enter NtUserGetSystemMenu\n");
|
||||
UserEnterShared();
|
||||
UserEnterExclusive();
|
||||
|
||||
if (!(Window = UserGetWindowObject(hWnd)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue