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

This commit is contained in:
Alexandre Julliard 2006-03-13 14:19:58 +01:00
parent 0811851b94
commit db0aabca25
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ static BOOL CreateDirect3D(void)
ok(rc==DD_OK, "SetCooperativeLevel returned: %lx\n", rc); ok(rc==DD_OK, "SetCooperativeLevel returned: %lx\n", rc);
rc = IDirectDraw7_QueryInterface(lpDD, &IID_IDirect3D7, (void**) &lpD3D); rc = IDirectDraw7_QueryInterface(lpDD, &IID_IDirect3D7, (void**) &lpD3D);
if (rc == E_NOINTERFACE) return FALSE;
ok(rc==DD_OK, "QueryInterface returned: %lx\n", rc); ok(rc==DD_OK, "QueryInterface returned: %lx\n", rc);
memset(&ddsd, 0, sizeof(ddsd)); memset(&ddsd, 0, sizeof(ddsd));