mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WIN32K] Fix uninitialized hNewMenu use in MENU_DoNextMenu.
See also: Wine's implementation. Powered by clang-cl.
This commit is contained in:
parent
0e75fc9240
commit
42657493ef
1 changed files with 1 additions and 0 deletions
|
@ -3813,6 +3813,7 @@ static LRESULT FASTCALL MENU_DoNextMenu(MTRACKER* pmt, UINT Vk, UINT wFlags)
|
||||||
/* switch to the system menu */
|
/* switch to the system menu */
|
||||||
MenuTmp = get_win_sys_menu(hNewWnd);
|
MenuTmp = get_win_sys_menu(hNewWnd);
|
||||||
if (MenuTmp) hNewMenu = UserHMGetHandle(MenuTmp);
|
if (MenuTmp) hNewMenu = UserHMGetHandle(MenuTmp);
|
||||||
|
else hNewMenu = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue