d3d8/tests: Remove an always false condition (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Sun Nov 2 15:29:55 CST 2014
---
The previous if deals with the !tex and returns.
dlls/d3d8/tests/visual.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c
index ba73bb6..163110c 100644
--- a/dlls/d3d8/tests/visual.c
+++ b/dlls/d3d8/tests/visual.c
@@ -66,7 +66,7 @@ static DWORD getPixelColor(IDirect3DDevice8 *device, UINT x, UINT y)
return 0xdeadbeef;
}
hr = IDirect3DTexture8_GetSurfaceLevel(tex, 0, &surf);
- if(FAILED(hr) || !tex ) /* This is not a test */
+ if (FAILED(hr)) /* This is not a test */
{
trace("Can't get surface from texture, hr=%#08x\n", hr);
ret = 0xdeadbeee;
--
1.8.3.1
More information about the wine-patches
mailing list