Fixed an off by one error in enumdisplaymodes, allowing sims 2 to

start up.
This commit is contained in:
Oliver Stieber 2005-07-30 19:11:38 +00:00 committed by Alexandre Julliard
parent d4325152db
commit d15e2f1472

View File

@ -720,7 +720,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, WINE
DEVMODEW DevModeWtmp;
while (i<(Mode+1) && EnumDisplaySettingsExW(NULL, j, &DevModeWtmp, 0)) {
while (i<(Mode) && EnumDisplaySettingsExW(NULL, j, &DevModeWtmp, 0)) {
j++;
switch (Format)
{