[PATCH] no wined3ddevice - no surface
Marcus Meissner
marcus at jet.franken.de
Sat May 12 09:20:16 CDT 2007
Hi,
If wineD3DDevice is not set, than do return
failure (and do not reference NULL ifaces).
Ciao, Marcus
---
dlls/ddraw/ddraw.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 5093c9f..c8212f9 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2205,6 +2205,11 @@ IDirectDrawImpl_CreateSurface(IDirectDra
return E_POINTER; /* unchecked */
}
+ if (!This->wineD3DDevice) {
+ FIXME("No wineD3DDevice, no surface.\n");
+ return E_FAIL;
+ }
+
if (!(DDSD->dwFlags & DDSD_CAPS))
{
/* DVIDEO.DLL does forget the DDSD_CAPS flag ... *sigh* */
--
1.4.3.4
More information about the wine-patches
mailing list