From d15e2f1472dced903ce69dea9a9c18636554c749 Mon Sep 17 00:00:00 2001 From: Oliver Stieber Date: Sat, 30 Jul 2005 19:11:38 +0000 Subject: [PATCH] Fixed an off by one error in enumdisplaymodes, allowing sims 2 to start up. --- dlls/wined3d/directx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index eba2e364d54..20f763b2919 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -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) {