Save the scope window for mouse events before overwriting it.

This commit is contained in:
Alexandre Julliard 2005-07-19 19:14:32 +00:00
parent 500c41b75e
commit 98c315c7c0
1 changed files with 1 additions and 1 deletions

View File

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