From: Rémi Bernon rbernon@codeweavers.com
--- dlls/win32u/message.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/win32u/message.c b/dlls/win32u/message.c index 4b179619cf9..aaeb28c9b17 100644 --- a/dlls/win32u/message.c +++ b/dlls/win32u/message.c @@ -3274,6 +3274,8 @@ static DWORD wait_message( DWORD count, const HANDLE *handles, DWORD timeout, DW ULONG ret_len; DWORD ret;
+ TRACE( "count %u, handles %p, timeout %d, wake_mask %#x, changed_mask %#x, flags %#x\n", count, handles, timeout, wake_mask, changed_mask, flags ); + if ((abs = get_nt_timeout( &time, timeout ))) { NtQuerySystemTime( &now ); @@ -3337,6 +3339,8 @@ static DWORD wait_objects( DWORD count, const HANDLE *handles, DWORD timeout, { assert( count ); /* we must have at least the server queue */
+ TRACE( "count %u, handles %p, timeout %d, wake_mask %#x, changed_mask %#x, flags %#x\n", count, handles, timeout, wake_mask, changed_mask, flags ); + flush_window_surfaces( TRUE );
if (!check_queue_masks( wake_mask, changed_mask )) @@ -3380,6 +3384,8 @@ DWORD WINAPI NtUserMsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handl return WAIT_FAILED; }
+ TRACE( "count %u, handle %p, timeout %d, mask %#x, flags %#x\n", count, handles, timeout, mask, flags ); + /* add the queue to the handle list */ for (i = 0; i < count; i++) wait_handles[i] = normalize_std_handle( handles[i] ); wait_handles[count] = get_server_queue_handle(); @@ -3521,6 +3527,8 @@ BOOL WINAPI NtUserGetMessage( MSG *msg, HWND hwnd, UINT first, UINT last ) } else mask = QS_ALLINPUT;
+ TRACE( "msg %p, hwnd %p, first %#x, last %#x, mask %#x\n", msg, hwnd, first, last, mask ); + filter.mask = mask; filter.flags = PM_REMOVE | (mask << 16); while (!(ret = peek_message( msg, &filter )))