Fixed an off by one error in enumdisplaymodes, allowing sims 2 to
start up.
This commit is contained in:
parent
d4325152db
commit
d15e2f1472
|
@ -720,7 +720,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, WINE
|
||||||
DEVMODEW DevModeWtmp;
|
DEVMODEW DevModeWtmp;
|
||||||
|
|
||||||
|
|
||||||
while (i<(Mode+1) && EnumDisplaySettingsExW(NULL, j, &DevModeWtmp, 0)) {
|
while (i<(Mode) && EnumDisplaySettingsExW(NULL, j, &DevModeWtmp, 0)) {
|
||||||
j++;
|
j++;
|
||||||
switch (Format)
|
switch (Format)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue