Huw Davies : user32: A button-up in the menu-bar, but not on an item, should stop the tracking.
Alexandre Julliard
julliard at winehq.org
Mon Jun 5 16:56:32 CDT 2017
Module: wine
Branch: master
Commit: e60bc27dd2b15c9dbd09712219fc7259e6c2e595
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e60bc27dd2b15c9dbd09712219fc7259e6c2e595
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Jun 5 13:05:13 2017 +0100
user32: A button-up in the menu-bar, but not on an item, should stop the tracking.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/menu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 95e4ef6..00abcc9 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -2647,7 +2647,10 @@ static INT MENU_ButtonUp( MTRACKER* pmt, HMENU hPtMenu, UINT wFlags)
return 0;
}
if( GetMenu(ptmenu->hWnd) == hPtMenu || IS_SYSTEM_MENU(ptmenu) )
+ {
+ if (pos == NO_SELECTED_ITEM) return 0;
pmt->trackFlags |= TF_RCVD_BTN_UP;
+ }
}
return -1;
}
More information about the wine-cvs
mailing list