Commit 4d33d498 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Pass HWND_BOTTOM unmodified to the server in PeekMessage.

parent c0ef7a1a
......@@ -2034,8 +2034,7 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
if (!(buffer = HeapAlloc( GetProcessHeap(), 0, buffer_size ))) return FALSE;
if (!first && !last) last = ~0;
if (hwnd == HWND_BROADCAST || hwnd == HWND_TOPMOST || hwnd == HWND_BOTTOM)
hwnd = (HWND)-1;
if (hwnd == HWND_BROADCAST) hwnd = HWND_TOPMOST;
for (;;)
{
......
......@@ -636,7 +636,7 @@ static void reply_message( struct msg_queue *queue, lparam_t result,
static int match_window( user_handle_t win, user_handle_t msg_win )
{
if (!win) return 1;
if (win == (user_handle_t)-1) return !msg_win;
if (win == -1 || win == 1) return !msg_win;
if (msg_win == win) return 1;
return is_child_window( win, msg_win );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment