Commit 1dc38cf2 authored by Alexandre Julliard's avatar Alexandre Julliard

user: Make sure the desktop window exists before calling monitor functions.

parent 41951dc1
...@@ -396,6 +396,9 @@ HMONITOR WINAPI MonitorFromRect( LPRECT rect, DWORD flags ) ...@@ -396,6 +396,9 @@ HMONITOR WINAPI MonitorFromRect( LPRECT rect, DWORD flags )
{ {
struct monitor_enum_info info; struct monitor_enum_info info;
/* make sure the desktop window exists */
GetDesktopWindow();
info.rect = *rect; info.rect = *rect;
info.max_area = 0; info.max_area = 0;
info.min_distance = ~0u; info.min_distance = ~0u;
......
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