Commit 7d657ed8 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Make sure the submenu is valid in MENU_HideSubPopups.

parent f12c5bfc
......@@ -2298,7 +2298,7 @@ static void MENU_HideSubPopups( HWND hwndOwner, HMENU hmenu,
hsubmenu = item->hSubMenu;
} else return;
submenu = MENU_GetMenu( hsubmenu );
if (!(submenu = MENU_GetMenu( hsubmenu ))) return;
MENU_HideSubPopups( hwndOwner, hsubmenu, FALSE, wFlags );
MENU_SelectItem( hwndOwner, hsubmenu, NO_SELECTED_ITEM, sendMenuSelect, 0 );
DestroyWindow( submenu->hWnd );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment