mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +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;
|
PMENU SubMenu;
|
||||||
|
|
||||||
|
ASSERT(UserIsEnteredExclusive());
|
||||||
if (pMenu->rgItems) /* recursively destroy submenus */
|
if (pMenu->rgItems) /* recursively destroy submenus */
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -319,6 +320,7 @@ UserDestroyMenuObject(PVOID Object)
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntDestroyMenuObject(PMENU Menu, BOOL bRecurse)
|
IntDestroyMenuObject(PMENU Menu, BOOL bRecurse)
|
||||||
{
|
{
|
||||||
|
ASSERT(UserIsEnteredExclusive());
|
||||||
if (Menu)
|
if (Menu)
|
||||||
{
|
{
|
||||||
PWND Window;
|
PWND Window;
|
||||||
|
@ -5485,7 +5487,7 @@ NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
|
||||||
DECLARE_RETURN(HMENU);
|
DECLARE_RETURN(HMENU);
|
||||||
|
|
||||||
TRACE("Enter NtUserGetSystemMenu\n");
|
TRACE("Enter NtUserGetSystemMenu\n");
|
||||||
UserEnterShared();
|
UserEnterExclusive();
|
||||||
|
|
||||||
if (!(Window = UserGetWindowObject(hWnd)))
|
if (!(Window = UserGetWindowObject(hWnd)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue