Christopher Thielen : comctl32: Ensure that toolbar respond only to changes in WM_CAPTURECHANGED handler.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 12 06:45:25 CDT 2016


Module: wine
Branch: stable
Commit: 9a80865b5fab0fe8c5aaafc3eba7833893f9d5e1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9a80865b5fab0fe8c5aaafc3eba7833893f9d5e1

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

comctl32: Ensure that toolbar respond 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>
(cherry picked from commit ff063d9e250310d3cf8d27371040609b97c24f6c)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/comctl32/toolbar.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 890c18e..ae6f21e 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -6807,6 +6807,7 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 	    return TOOLBAR_MouseLeave (infoPtr);
 
 	case WM_CAPTURECHANGED:
+	    if (hwnd == (HWND)lParam) return 0;
 	    return TOOLBAR_CaptureChanged(infoPtr);
 
 	case WM_NCACTIVATE:




More information about the wine-cvs mailing list