d3d9/tests: Remove redundant not-NULL checks (coccinellery).

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-03-22 08:47:36 +01:00 committed by Alexandre Julliard
parent cd3e5020e4
commit f6be725389
1 changed files with 2 additions and 2 deletions

View File

@ -2731,7 +2731,7 @@ static void test_depthstenciltest(void)
ok(hr == D3D_OK, "IDirect3DDevice9_Clear failed with %08x\n", hr); ok(hr == D3D_OK, "IDirect3DDevice9_Clear failed with %08x\n", hr);
if(pDepthStencil) IDirect3DSurface9_Release(pDepthStencil); if(pDepthStencil) IDirect3DSurface9_Release(pDepthStencil);
if(pDevice) IDirect3D9_Release(pDevice); IDirect3D9_Release(pDevice);
/* Now see if autodepthstencil disable is honored. First, without a format set */ /* Now see if autodepthstencil disable is honored. First, without a format set */
ZeroMemory( &d3dpp, sizeof(d3dpp) ); ZeroMemory( &d3dpp, sizeof(d3dpp) );
@ -2765,7 +2765,7 @@ static void test_depthstenciltest(void)
ok(hr == D3D_OK, "IDirect3DDevice9_GetRenderState failed with %08x\n", hr); ok(hr == D3D_OK, "IDirect3DDevice9_GetRenderState failed with %08x\n", hr);
ok(state == D3DZB_FALSE, "D3DRS_ZENABLE is %s\n", state == D3DZB_FALSE ? "D3DZB_FALSE" : (state == D3DZB_TRUE ? "D3DZB_TRUE" : "D3DZB_USEW")); ok(state == D3DZB_FALSE, "D3DRS_ZENABLE is %s\n", state == D3DZB_FALSE ? "D3DZB_FALSE" : (state == D3DZB_TRUE ? "D3DZB_TRUE" : "D3DZB_USEW"));
if(pDevice) IDirect3D9_Release(pDevice); IDirect3D9_Release(pDevice);
/* Next, try EnableAutoDepthStencil FALSE with a depth stencil format set */ /* Next, try EnableAutoDepthStencil FALSE with a depth stencil format set */
ZeroMemory( &d3dpp, sizeof(d3dpp) ); ZeroMemory( &d3dpp, sizeof(d3dpp) );