Module: wine Branch: master Commit: 85faafc0e3f3861e7c03d4f7dc842bd7d4cf6ae9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=85faafc0e3f3861e7c03d4f7dc...
Author: Christopher Thielen cthielen@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@gmail.com Signed-off-by: Alexandre Julliard julliard@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) {