[PATCH] user32: Keep tracking if we just created the menu.

Zebediah Figura z.figura12 at gmail.com
Wed May 31 14:34:06 CDT 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/user32/menu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index a65f01eaa5..c52b723f76 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -2597,7 +2597,10 @@ static BOOL MENU_ButtonDown( MTRACKER* pmt, HMENU hPtMenu, UINT wFlags )
 
             /* If the popup menu is not already "popped" */
             if (!(ptmenu->items[pos].fState & MF_MOUSESELECT))
+            {
                 pmt->hCurrentMenu = MENU_ShowSubPopup( pmt->hOwnerWnd, hPtMenu, FALSE, wFlags );
+                return TRUE;
+            }
         }
 
         /* A click on an item or anywhere on a popup keeps tracking going */
-- 
2.13.0




More information about the wine-patches mailing list