Alexandre Julliard : user: Make sure the desktop window exists before calling monitor functions.
Module: wine Branch: master Commit: 1dc38cf26b2ee0c1c2c37e9ac53dfd20a726dc6e URL: http://source.winehq.org/git/wine.git/?a=commit;h=1dc38cf26b2ee0c1c2c37e9ac5... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Oct 24 12:22:43 2006 +0200 user: Make sure the desktop window exists before calling monitor functions. --- dlls/user/misc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/user/misc.c b/dlls/user/misc.c index 4cc1105..842819b 100644 --- a/dlls/user/misc.c +++ b/dlls/user/misc.c @@ -396,6 +396,9 @@ HMONITOR WINAPI MonitorFromRect( LPRECT { struct monitor_enum_info info; + /* make sure the desktop window exists */ + GetDesktopWindow(); + info.rect = *rect; info.max_area = 0; info.min_distance = ~0u;
participants (1)
-
Alexandre Julliard