Alexandre Julliard : ddraw: Don't crash in d3d test if OpenGL is missing.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 13 08:46:47 CST 2006


Module: wine
Branch: refs/heads/master
Commit: db0aabca25189e78cff2e633e6f874cc895ffd12
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=db0aabca25189e78cff2e633e6f874cc895ffd12

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Mar 13 14:19:58 2006 +0100

ddraw: Don't crash in d3d test if OpenGL is missing.

---

 dlls/ddraw/tests/d3d.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index 00d84d6..bdfc4dc 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -58,6 +58,7 @@ static BOOL CreateDirect3D(void)
     ok(rc==DD_OK, "SetCooperativeLevel returned: %lx\n", rc);
 
     rc = IDirectDraw7_QueryInterface(lpDD, &IID_IDirect3D7, (void**) &lpD3D);
+    if (rc == E_NOINTERFACE) return FALSE;
     ok(rc==DD_OK, "QueryInterface returned: %lx\n", rc);
 
     memset(&ddsd, 0, sizeof(ddsd));




More information about the wine-cvs mailing list