From 98c315c7c0c91ca9c0d04cd8c0b4906ba86bd170 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 19 Jul 2005 19:14:32 +0000 Subject: [PATCH] Save the scope window for mouse events before overwriting it. --- dlls/user/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user/message.c b/dlls/user/message.c index 0ecc494671b..6f7d3d1487d 100644 --- a/dlls/user/message.c +++ b/dlls/user/message.c @@ -1646,6 +1646,7 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H GUITHREADINFO info; MOUSEHOOKSTRUCT hook; BOOL eatMsg; + HWND hWndScope = msg->hwnd; /* find the window to dispatch this mouse message to */ @@ -1653,7 +1654,6 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H GetGUIThreadInfo( GetCurrentThreadId(), &info ); if (!(msg->hwnd = info.hwndCapture)) { - HWND hWndScope = msg->hwnd; /* If no capture HWND, find window which contains the mouse position. * Also find the position of the cursor hot spot (hittest) */ if (!IsWindow(hWndScope)) hWndScope = 0;