2015-08-29 20:26:18 -07:00
|
|
|
From 42dd44a1aa50a947d7184e1eeeb5b1b31ed69125 Mon Sep 17 00:00:00 2001
|
2015-04-08 20:47:16 -07:00
|
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
2015-08-29 20:26:18 -07:00
|
|
|
Date: Tue, 25 Aug 2015 11:16:07 +0200
|
2015-04-08 20:47:16 -07:00
|
|
|
Subject: ddraw: Fix arguments to IDirectDraw7::EnumSurfaces in DllMain.
|
|
|
|
|
|
|
|
---
|
|
|
|
dlls/ddraw/main.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
|
2015-08-29 20:26:18 -07:00
|
|
|
index 8631827..3dae424 100644
|
2015-04-08 20:47:16 -07:00
|
|
|
--- a/dlls/ddraw/main.c
|
|
|
|
+++ b/dlls/ddraw/main.c
|
2015-08-29 20:26:18 -07:00
|
|
|
@@ -937,8 +937,8 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
|
2015-04-08 20:47:16 -07:00
|
|
|
desc.dwSize = sizeof(desc);
|
|
|
|
for(i = 0; i <= 1; i++)
|
|
|
|
{
|
|
|
|
- hr = IDirectDraw7_EnumSurfaces(&ddraw->IDirectDraw7_iface, DDENUMSURFACES_ALL,
|
|
|
|
- &desc, ddraw, DestroyCallback);
|
|
|
|
+ hr = IDirectDraw7_EnumSurfaces(&ddraw->IDirectDraw7_iface,
|
|
|
|
+ DDENUMSURFACES_DOESEXIST | DDENUMSURFACES_ALL, &desc, ddraw, DestroyCallback);
|
|
|
|
if(hr != D3D_OK)
|
|
|
|
ERR("(%p) EnumSurfaces failed, prepare for trouble\n", ddraw);
|
|
|
|
}
|
|
|
|
--
|
2015-08-29 20:26:18 -07:00
|
|
|
2.5.0
|
2015-04-08 20:47:16 -07:00
|
|
|
|