user32: Allow sent WM_CANCELMODE to end menu tracking in a window's menu bar.

This commit is contained in:
Ken Thomases 2013-05-17 00:40:30 -05:00 committed by Alexandre Julliard
parent d64793f17b
commit effc28e16e
1 changed files with 1 additions and 1 deletions

View File

@ -2429,7 +2429,7 @@ void MENU_EndMenu( HWND hwnd )
{
POPUPMENU *menu;
menu = top_popup_hmenu ? MENU_GetMenu( top_popup_hmenu ) : NULL;
if (menu && hwnd == menu->hwndOwner) EndMenu();
if (menu && (hwnd == menu->hWnd || hwnd == menu->hwndOwner)) EndMenu();
}
/***********************************************************************