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:
parent
d708f309c8
commit
a9506bf952
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue