Commit 3f31a10d authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid a crash in find_hardware_message_window when there's no

foreground input.
parent 8f9fa7ab
......@@ -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;
......
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