From 15a5da9790aaf36105c0a42370d2bb5da67f9195 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 24 Jun 2008 11:09:47 +0200 Subject: [PATCH] d3d9/tests: Test for Direct3DCreate9 failure. --- dlls/d3d9/tests/d3d9ex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/d3d9/tests/d3d9ex.c b/dlls/d3d9/tests/d3d9ex.c index 6df4c45dd9c..0d80abbd602 100644 --- a/dlls/d3d9/tests/d3d9ex.c +++ b/dlls/d3d9/tests/d3d9ex.c @@ -58,6 +58,9 @@ static void test_qi_base_to_ex(void) HWND window = create_window(); D3DPRESENT_PARAMETERS present_parameters; + ok( d3d9 != NULL, "Failed to create D3D9 object\n" ); + if (!d3d9) return; + hr = IDirect3D9_QueryInterface(d3d9, &IID_IDirect3D9Ex, (void **) &d3d9ex); ok(hr == E_NOINTERFACE, "IDirect3D9::QueryInterface for IID_IDirect3D9Ex returned %s, expected E_NOINTERFACE\n", -- 2.11.4.GIT