[PATCH] d3dx9/tests: Fix some test failures

Nikolay Sivov nsivov at codeweavers.com
Tue Jan 19 15:17:48 CST 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/d3dx9_36/tests/mesh.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 7c86190..1afba18 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -11109,21 +11109,25 @@ static void D3DXCreateAnimationControllerTest(void)
     hr = D3DXCreateAnimationController(0, 0, 0, 0, NULL);
     ok(hr == D3D_OK, "Got unexpected hr returned %#x.\n", hr);
 
+    animation = (void*)0xdeadbeef;
     hr = D3DXCreateAnimationController(0, 1, 1, 1, &animation);
     ok(hr == D3D_OK, "Got unexpected hr returned %#x.\n", hr);
-    ok(!animation, "Got unexpected animation %p.\n", animation);
+    ok(animation == (void*)0xdeadbeef, "Got unexpected animation %p.\n", animation);
 
+    animation = (void*)0xdeadbeef;
     hr = D3DXCreateAnimationController(1, 0, 1, 1, &animation);
     ok(hr == D3D_OK, "Got unexpected hr returned %#x.\n", hr);
-    ok(!animation, "Got unexpected animation %p.\n", animation);
+    ok(animation == (void*)0xdeadbeef, "Got unexpected animation %p.\n", animation);
 
+    animation = (void*)0xdeadbeef;
     hr = D3DXCreateAnimationController(1, 1, 0, 1, &animation);
     ok(hr == D3D_OK, "Got unexpected hr returned %#x.\n", hr);
-    ok(!animation, "Got unexpected animation %p.\n", animation);
+    ok(animation == (void*)0xdeadbeef, "Got unexpected animation %p.\n", animation);
 
+    animation = (void*)0xdeadbeef;
     hr = D3DXCreateAnimationController(1, 1, 1, 0, &animation);
     ok(hr == D3D_OK, "Got unexpected hr returned %#x.\n", hr);
-    ok(!animation, "Got unexpected animation %p.\n", animation);
+    ok(animation == (void*)0xdeadbeef, "Got unexpected animation %p.\n", animation);
 
     hr = D3DXCreateAnimationController(1, 1, 1, 1, &animation);
     ok(hr == D3D_OK, "Got unexpected hr returned %#x.\n", hr);
-- 
2.7.0.rc3




More information about the wine-patches mailing list