d3dx9/tests: Get rid of some redundant NULL checks in D3DXCreateTextTest().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-11 16:01:42 +01:00 committed by Alexandre Julliard
parent d708f309c8
commit a9506bf952
1 changed files with 2 additions and 2 deletions

View File

@ -4401,7 +4401,7 @@ static void D3DXCreateTextTest(void)
ok(hr == D3D_OK, "Got result %x, expected %x (D3D_OK)\n", hr, D3D_OK);
number_of_vertices = d3dxmesh->lpVtbl->GetNumVertices(d3dxmesh);
number_of_faces = d3dxmesh->lpVtbl->GetNumFaces(d3dxmesh);
if (SUCCEEDED(hr) && d3dxmesh) d3dxmesh->lpVtbl->Release(d3dxmesh);
d3dxmesh->lpVtbl->Release(d3dxmesh);
hr = D3DXCreateTextA(device, hdc, "wine", 0.0f, 0.4f, &d3dxmesh, NULL, NULL);
ok(hr == D3D_OK, "Got result %x, expected %x (D3D_OK)\n", hr, D3D_OK);
@ -4411,7 +4411,7 @@ static void D3DXCreateTextTest(void)
ok(number_of_faces == d3dxmesh->lpVtbl->GetNumFaces(d3dxmesh),
"Got %d faces, expected %d\n",
d3dxmesh->lpVtbl->GetNumVertices(d3dxmesh), number_of_faces);
if (SUCCEEDED(hr) && d3dxmesh) d3dxmesh->lpVtbl->Release(d3dxmesh);
d3dxmesh->lpVtbl->Release(d3dxmesh);
if (0)
{