Alexandre Julliard : d3d9/tests: Test for Direct3DCreate9 failure.
Alexandre Julliard
julliard at winehq.org
Tue Jun 24 06:43:38 CDT 2008
Module: wine
Branch: master
Commit: 15a5da9790aaf36105c0a42370d2bb5da67f9195
URL: http://source.winehq.org/git/wine.git/?a=commit;h=15a5da9790aaf36105c0a42370d2bb5da67f9195
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jun 24 11:09:47 2008 +0200
d3d9/tests: Test for Direct3DCreate9 failure.
---
dlls/d3d9/tests/d3d9ex.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/tests/d3d9ex.c b/dlls/d3d9/tests/d3d9ex.c
index 6df4c45..0d80abb 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",
More information about the wine-cvs
mailing list