Commit d15e2f14 authored by Oliver Stieber's avatar Oliver Stieber Committed by Alexandre Julliard

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

start up.
parent d4325152
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment