mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:20:56 +00:00
Move SPY_EnterMessage call after all possible exits so that there will
be a matching SPY_ExitMessage.
This commit is contained in:
parent
887c2b3b56
commit
38a247fde9
|
@ -1518,12 +1518,12 @@ LRESULT WINAPI SendMessageTimeoutW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
|
|||
return 1;
|
||||
}
|
||||
|
||||
SPY_EnterMessage( SPY_SENDMESSAGE, hwnd, msg, wparam, lparam );
|
||||
|
||||
if (!(dest_tid = GetWindowThreadProcessId( hwnd, &dest_pid ))) return 0;
|
||||
|
||||
if (USER_IsExitingThread( dest_tid )) return 0;
|
||||
|
||||
SPY_EnterMessage( SPY_SENDMESSAGE, hwnd, msg, wparam, lparam );
|
||||
|
||||
if (dest_tid == GetCurrentThreadId())
|
||||
{
|
||||
result = call_window_proc( hwnd, msg, wparam, lparam, TRUE );
|
||||
|
@ -1566,12 +1566,12 @@ LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
|
|||
return 1;
|
||||
}
|
||||
|
||||
SPY_EnterMessage( SPY_SENDMESSAGE, hwnd, msg, wparam, lparam );
|
||||
|
||||
if (!(dest_tid = GetWindowThreadProcessId( hwnd, &dest_pid ))) return 0;
|
||||
|
||||
if (USER_IsExitingThread( dest_tid )) return 0;
|
||||
|
||||
SPY_EnterMessage( SPY_SENDMESSAGE, hwnd, msg, wparam, lparam );
|
||||
|
||||
if (dest_tid == GetCurrentThreadId())
|
||||
{
|
||||
result = call_window_proc( hwnd, msg, wparam, lparam, FALSE );
|
||||
|
|
Loading…
Reference in a new issue