mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Have PostMessage call PostThreadMessage when hwnd is NULL.
This commit is contained in:
parent
ce1a430547
commit
24677dd4d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user