Alexandre Julliard : user:
Make sure the desktop window exists before calling monitor functions.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 24 13:39:47 CDT 2006
Module: wine
Branch: master
Commit: 1dc38cf26b2ee0c1c2c37e9ac53dfd20a726dc6e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1dc38cf26b2ee0c1c2c37e9ac53dfd20a726dc6e
Author: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list