mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[WIN32K:NTUSER] Fix WIN32K BSOD mentioned in CORE-15027
Fixes accessing nullptr / invalid handle in Window->SystemMenu I could trigger this occasionally when moving Opera 12.18 window in front of Spotify 1.0.29.92 window. Fix was: authored by Thomas Faber (Thank you!) tested by me reviewed by James Tabor
This commit is contained in:
parent
f8f83d4d4d
commit
ef016bfe0a
1 changed files with 1 additions and 1 deletions
|
@ -5181,7 +5181,7 @@ IntGetSystemMenu(PWND Window, BOOL bRevert)
|
|||
else
|
||||
{
|
||||
Menu = Window->SystemMenu ? UserGetMenuObject(Window->SystemMenu) : NULL;
|
||||
if ((!Window->SystemMenu || Menu->fFlags & MNF_SYSDESKMN) && Window->style & WS_SYSMENU)
|
||||
if ((!Menu || Menu->fFlags & MNF_SYSDESKMN) && Window->style & WS_SYSMENU)
|
||||
{
|
||||
Menu = MENU_GetSystemMenu(Window, NULL);
|
||||
Window->SystemMenu = Menu ? UserHMGetHandle(Menu) : NULL;
|
||||
|
|
Loading…
Reference in a new issue