user32: A button-up in the menu-bar, but not on an item, should stop the tracking.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-06-05 13:05:13 +01:00 committed by Alexandre Julliard
parent 580915040e
commit e60bc27dd2
1 changed files with 3 additions and 0 deletions

View File

@ -2647,7 +2647,10 @@ static INT MENU_ButtonUp( MTRACKER* pmt, HMENU hPtMenu, UINT wFlags)
return 0; return 0;
} }
if( GetMenu(ptmenu->hWnd) == hPtMenu || IS_SYSTEM_MENU(ptmenu) ) if( GetMenu(ptmenu->hWnd) == hPtMenu || IS_SYSTEM_MENU(ptmenu) )
{
if (pos == NO_SELECTED_ITEM) return 0;
pmt->trackFlags |= TF_RCVD_BTN_UP; pmt->trackFlags |= TF_RCVD_BTN_UP;
}
} }
return -1; return -1;
} }