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

Signed-off-by: Christopher Thielen <cthielen@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Christopher Thielen 2016-01-31 20:26:47 -08:00 committed by Alexandre Julliard
parent e379a17a0a
commit ff063d9e25
1 changed files with 1 additions and 0 deletions

View File

@ -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: