mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
user: Make sure the desktop window exists before calling monitor functions.
This commit is contained in:
parent
41951dc124
commit
1dc38cf26b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue