Christopher Thielen : user32: Ensure that button responds only to changes in WM_CAPTURECHANGED handler.
Module: wine Branch: stable Commit: 456aa03add985f8e1ac8dfbe2ed819e39cca0656 URL: http://source.winehq.org/git/wine.git/?a=commit;h=456aa03add985f8e1ac8dfbe2e... Author: Christopher Thielen <cthielen(a)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(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> (cherry picked from commit 85faafc0e3f3861e7c03d4f7dc842bd7d4cf6ae9) Signed-off-by: Michael Stefaniuc <mstefani(a)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) {
participants (1)
-
Alexandre Julliard