Alex Henrie : user32: Release capture before sending WM_COMMAND.
Module: wine Branch: master Commit: a3e4c694197018f5c05b815660f3cd9fcee17c87 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a3e4c694197018f5c05b815660... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Mon Oct 12 01:30:51 2015 -0600 user32: Release capture before sending WM_COMMAND. Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/button.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/user32/button.c b/dlls/user32/button.c index eeb3035..db479a8 100644 --- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -353,9 +353,13 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, (state & BST_INDETERMINATE) ? 0 : ((state & 3) + 1), 0 ); break; } + ReleaseCapture(); BUTTON_NOTIFY_PARENT(hWnd, BN_CLICKED); } - ReleaseCapture(); + else + { + ReleaseCapture(); + } break; case WM_CAPTURECHANGED:
participants (1)
-
Alexandre Julliard