user32: Set the size of returned DEVMODE to least common one as XP does.

This commit is contained in:
Dmitry Timoshkov 2008-05-04 12:38:58 +09:00 committed by Alexandre Julliard
parent fa61eac0f7
commit 2e19d9c473
1 changed files with 1 additions and 1 deletions

View File

@ -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,