[0.4.7][WIN32K:NTUSER] Acquire the user lock exclusively in NtUserGetSystemMenu CORE...
authorJoachim Henze <Joachim.Henze@reactos.org>
Thu, 3 Dec 2020 01:12:40 +0000 (02:12 +0100)
committerJoachim Henze <Joachim.Henze@reactos.org>
Thu, 3 Dec 2020 01:12:40 +0000 (02:12 +0100)
It is rare, but I have seen this crash happening as well
when interacting with the taskbar quickly after the boot.

fix picked from 0.4.12-dev-203-g c526f94

win32ss/user/ntuser/menu.c

index d162ad2..faf7c95 100644 (file)
@@ -5435,7 +5435,7 @@ NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
    DECLARE_RETURN(HMENU);
 
    TRACE("Enter NtUserGetSystemMenu\n");
-   UserEnterShared();
+   UserEnterExclusive();
 
    if (!(Window = UserGetWindowObject(hWnd)))
    {