user32: Make sure the desktop window is created before mode enumeration.

This commit is contained in:
Dmitry Timoshkov 2007-12-03 17:48:19 +08:00 committed by Alexandre Julliard
parent f2213dd23f
commit 718e71300c
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}