Module: wine Branch: master Commit: eb5127dfd1fef6c0b8ed380ae1f7c8c6aa998769 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eb5127dfd1fef6c0b8ed380ae1...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Oct 16 12:14:44 2013 +0200
user32: Create the desktop window before enumerating monitors.
---
dlls/user32/misc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c index 50bb79a..9177f56 100644 --- a/dlls/user32/misc.c +++ b/dlls/user32/misc.c @@ -351,9 +351,6 @@ HMONITOR WINAPI MonitorFromRect( LPRECT rect, DWORD flags ) { struct monitor_enum_info info;
- /* make sure the desktop window exists */ - GetDesktopWindow(); - info.rect = *rect; info.max_area = 0; info.min_distance = ~0u; @@ -444,6 +441,9 @@ BOOL WINAPI GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) */ BOOL WINAPI EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp ) { + /* make sure the desktop window exists */ + GetDesktopWindow(); + return USER_Driver->pEnumDisplayMonitors( hdc, rect, proc, lp ); }