[WIN32K] Fix uninitialized hNewMenu use in MENU_DoNextMenu.

See also: Wine's implementation.
Powered by clang-cl.
This commit is contained in:
Thomas Faber 2021-10-15 22:30:04 -04:00
parent 0e75fc9240
commit 42657493ef
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -3813,6 +3813,7 @@ static LRESULT FASTCALL MENU_DoNextMenu(MTRACKER* pmt, UINT Vk, UINT wFlags)
/* switch to the system menu */
MenuTmp = get_win_sys_menu(hNewWnd);
if (MenuTmp) hNewMenu = UserHMGetHandle(MenuTmp);
else hNewMenu = NULL;
}
else
return FALSE;