[PATCH 08/10] d3dx9: Add NULL mesh parameter test to D3DXCreateBox. (try 2)

Misha Koshelev misha680 at gmail.com
Sat Jul 17 14:14:17 CDT 2010


---
 dlls/d3dx9_36/tests/mesh.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 88152c0..80468f9 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -551,6 +551,9 @@ static void D3DXCreateBoxTest(void)
         return;
     }
 
+    hr = D3DXCreateBox(device, 1.0f, 1.0f, 1.0f, NULL, NULL);
+    todo_wine ok( hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3DERR_INVALIDCALL)\n",hr,D3DERR_INVALIDCALL);
+
     hr = D3DXCreateBox(device, 0.0f, 0.0f, 0.0f, &box, NULL);
     todo_wine ok( hr == D3D_OK, "Got result %x, expected 0 (D3D_OK)\n",hr);
 
-- 
1.7.1







More information about the wine-patches mailing list