Dmitry Timoshkov : user32: Make sure the desktop window is created before mode enumeration.
Alexandre Julliard
julliard at winehq.org
Tue Dec 4 13:25:23 CST 2007
Module: wine
Branch: master
Commit: 718e71300c2a0422f5174094887944a24753b0a4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=718e71300c2a0422f5174094887944a24753b0a4
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Mon Dec 3 17:48:19 2007 +0800
user32: Make sure the desktop window is created before mode enumeration.
---
dlls/user32/sysparams.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index dba5dd6..2bf8127 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -3092,5 +3092,8 @@ BOOL WINAPI EnumDisplaySettingsExA(LPCSTR lpszDeviceName, DWORD iModeNum,
BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
LPDEVMODEW lpDevMode, DWORD dwFlags)
{
+ /* make sure the desktop window is created before mode enumeration */
+ GetDesktopWindow();
+
return USER_Driver->pEnumDisplaySettingsEx(lpszDeviceName, iModeNum, lpDevMode, dwFlags);
}
More information about the wine-cvs
mailing list