[PATCH 3/3] user32: Release capture before sending WM_COMMAND.

Alex Henrie alexhenrie24 at gmail.com
Mon Oct 12 02:30:51 CDT 2015


Fixes https://bugs.winehq.org/show_bug.cgi?id=39296

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 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 5e7e7f0..a9e48ff 100644
--- a/dlls/user32/button.c
+++ b/dlls/user32/button.c
@@ -351,9 +351,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:
-- 
2.6.1




More information about the wine-patches mailing list