Move SPY_EnterMessage call after all possible exits so that there will

be a matching SPY_ExitMessage.
This commit is contained in:
Guy Albertelli 2001-11-05 23:56:01 +00:00 committed by Alexandre Julliard
parent 887c2b3b56
commit 38a247fde9

View file

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