Christopher Thielen : user32: Ensure that button responds only to changes in WM_CAPTURECHANGED handler.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 2 09:59:29 CST 2016


Module: wine
Branch: master
Commit: 85faafc0e3f3861e7c03d4f7dc842bd7d4cf6ae9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=85faafc0e3f3861e7c03d4f7dc842bd7d4cf6ae9

Author: Christopher Thielen <cthielen at gmail.com>
Date:   Sun Jan 31 20:31:02 2016 -0800

user32: Ensure that button responds only to changes in WM_CAPTURECHANGED handler.

Signed-off-by: Christopher Thielen <cthielen at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/button.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/user32/button.c b/dlls/user32/button.c
index 890d154..9c52147 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -364,6 +364,7 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
 
     case WM_CAPTURECHANGED:
         TRACE("WM_CAPTURECHANGED %p\n", hWnd);
+        if (hWnd == (HWND)lParam) break;
         state = get_button_state( hWnd );
         if (state & BUTTON_BTNPRESSED)
         {




More information about the wine-cvs mailing list