[0.4.11][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:09:41 +01:00
parent fd1fa5e9ca
commit e11d83ad08

View file

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