Michael Stefaniuc : d3d8/tests: Remove an always false condition ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 3 07:21:48 CST 2014
Module: wine
Branch: master
Commit: 4a67e66a3dd5473dbddf37a535673b95451801d1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4a67e66a3dd5473dbddf37a535673b95451801d1
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sun Nov 2 22:29:55 2014 +0100
d3d8/tests: Remove an always false condition (PVS-Studio).
---
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;
More information about the wine-cvs
mailing list