mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 42dd44a1aa50a947d7184e1eeeb5b1b31ed69125 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
Date: Tue, 25 Aug 2015 11:16:07 +0200
|
|
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
|
|
index 8631827..3dae424 100644
|
|
--- a/dlls/ddraw/main.c
|
|
+++ b/dlls/ddraw/main.c
|
|
@@ -937,8 +937,8 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
|
|
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);
|
|
}
|
|
--
|
|
2.5.0
|
|
|