user32: Set the size of returned DEVMODE to least common one as XP does.
This commit is contained in:
parent
fa61eac0f7
commit
2e19d9c473
|
@ -3074,7 +3074,7 @@ BOOL WINAPI EnumDisplaySettingsExA(LPCSTR lpszDeviceName, DWORD iModeNum,
|
|||
ret = EnumDisplaySettingsExW(nameW.Buffer,iModeNum,&devmodeW,dwFlags);
|
||||
if (ret)
|
||||
{
|
||||
lpDevMode->dmSize = sizeof(*lpDevMode);
|
||||
lpDevMode->dmSize = FIELD_OFFSET(DEVMODEA, dmICMMethod);
|
||||
lpDevMode->dmSpecVersion = devmodeW.dmSpecVersion;
|
||||
lpDevMode->dmDriverVersion = devmodeW.dmDriverVersion;
|
||||
WideCharToMultiByte(CP_ACP, 0, devmodeW.dmDeviceName, -1,
|
||||
|
|
Loading…
Reference in New Issue