Gerald Pfeifer : d3d9/tests: Fix three incorrect logic conditions.
Alexandre Julliard
julliard at winehq.org
Mon Jun 22 09:04:13 CDT 2009
Module: wine
Branch: master
Commit: 9b043744cd468752666a761e8c079e3d159d7dea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9b043744cd468752666a761e8c079e3d159d7dea
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Fri Jun 19 19:22:48 2009 +0200
d3d9/tests: Fix three incorrect logic conditions.
---
dlls/d3d9/tests/query.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d9/tests/query.c b/dlls/d3d9/tests/query.c
index 51a8668..8fc66e9 100644
--- a/dlls/d3d9/tests/query.c
+++ b/dlls/d3d9/tests/query.c
@@ -105,7 +105,7 @@ static void test_query_support(IDirect3D9 *pD3d, HWND hwnd)
for(i = 0; i < sizeof(queries) / sizeof(queries[0]); i++)
{
hr = IDirect3DDevice9_CreateQuery(pDevice, queries[i].type, NULL);
- ok(hr == D3D_OK || D3DERR_NOTAVAILABLE,
+ ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE,
"IDirect3DDevice9_CreateQuery returned unexpected return value %08x for query %s\n", hr, queryName(queries[i].type));
supported = (hr == D3D_OK ? TRUE : FALSE);
@@ -119,7 +119,7 @@ static void test_query_support(IDirect3D9 *pD3d, HWND hwnd)
queryName(queries[i].type));
hr = IDirect3DDevice9_CreateQuery(pDevice, queries[i].type, &pQuery);
- ok(hr == D3D_OK || D3DERR_NOTAVAILABLE,
+ ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE,
"IDirect3DDevice9_CreateQuery returned unexpected return value %08x for query %s\n", hr, queryName(queries[i].type));
ok(!(supported && !pQuery), "Query %s was claimed to be supported, but can't be created\n", queryName(queries[i].type));
ok(!(!supported && pQuery), "Query %s was claimed not to be supported, but can be created\n", queryName(queries[i].type));
@@ -163,7 +163,7 @@ static void test_occlusion_query_states(IDirect3D9 *pD3d, HWND hwnd)
}
hr = IDirect3DDevice9_CreateQuery(pDevice, D3DQUERYTYPE_OCCLUSION, &pQuery);
- ok(hr == D3D_OK || D3DERR_NOTAVAILABLE,
+ ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE,
"IDirect3DDevice9_CreateQuery returned unexpected return value %08x\n", hr);
if(!pQuery) {
skip("Occlusion queries not supported\n");
More information about the wine-cvs
mailing list