Skip to content
Snippets Groups Projects
Commit d15e2f14 authored by Oliver Stieber's avatar Oliver Stieber Committed by Alexandre Julliard
Browse files

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

start up.
parent d4325152
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment