[0.4.9][WIN32K:NTUSER] Acquire the user lock exclusively in NtUserGetSystemMenu CORE-15512

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
This commit is contained in:
Joachim Henze 2020-12-03 02:11:14 +01:00
parent d15f8a6646
commit 2b96692387

View file

@ -5454,7 +5454,7 @@ NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
DECLARE_RETURN(HMENU);
TRACE("Enter NtUserGetSystemMenu\n");
UserEnterShared();
UserEnterExclusive();
if (!(Window = UserGetWindowObject(hWnd)))
{