user32: Make sure the desktop window is created before mode enumeration.
This commit is contained in:
parent
f2213dd23f
commit
718e71300c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue