Have PostMessage call PostThreadMessage when hwnd is NULL.

This commit is contained in:
Steve Lustbader 2002-11-21 23:44:58 +00:00 committed by Alexandre Julliard
parent ce1a430547
commit 24677dd4d9

View File

@ -2006,6 +2006,9 @@ BOOL WINAPI PostMessageW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
EnumWindows( broadcast_message_callback, (LPARAM)&info );
return TRUE;
}
if (!hwnd) return PostThreadMessageW( GetCurrentThreadId(), msg, wparam, lparam );
if (!(dest_tid = GetWindowThreadProcessId( hwnd, NULL ))) return FALSE;
if (USER_IsExitingThread( dest_tid )) return TRUE;