user32: Pass HWND_BOTTOM unmodified to the server in PeekMessage.
This commit is contained in:
parent
c0ef7a1a93
commit
4d33d4982f
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue