user32: Pass HWND_BOTTOM unmodified to the server in PeekMessage.

This commit is contained in:
Alexandre Julliard 2010-03-03 13:18:33 +01:00
parent c0ef7a1a93
commit 4d33d4982f
2 changed files with 2 additions and 3 deletions

View File

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

View File

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