Avoid a crash in find_hardware_message_window when there's no

foreground input.
This commit is contained in:
Alexandre Julliard 2005-08-16 19:58:12 +00:00
parent 8f9fa7abc7
commit 3f31a10d01
1 changed files with 3 additions and 1 deletions

View File

@ -1155,7 +1155,9 @@ static user_handle_t find_hardware_message_window( struct thread_input *input, s
if (!input || !(win = input->capture))
{
if (!(win = msg->win) || !is_window_visible( win ))
win = window_from_point( input->desktop, msg->x, msg->y );
{
if (input) win = window_from_point( input->desktop, msg->x, msg->y );
}
}
}
return win;