d3dx9/tests: Fix some test failures.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2016-01-20 00:17:48 +03:00 committed by Alexandre Julliard
parent 6024656f98
commit 7b38f20458
1 changed files with 8 additions and 4 deletions

View File

@ -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);