d3dx9_36: Avoid a TRUE:FALSE conditional expression.
Michael Stefaniuc
mstefani at redhat.de
Mon Feb 29 08:53:25 CST 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
At that point bvalue == 5 which was set five lines above.
dlls/d3dx9_36/tests/effect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c
index 482f064..1b895da 100644
--- a/dlls/d3dx9_36/tests/effect.c
+++ b/dlls/d3dx9_36/tests/effect.c
@@ -1953,7 +1953,7 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
hr = effect->lpVtbl->SetBool(effect, parameter, bvalue);
if (!res_desc->Elements && res_desc->Rows == 1 && res_desc->Columns == 1)
{
- bvalue = bvalue ? TRUE : FALSE;
+ bvalue = TRUE;
set_number(expected_value, res_desc->Type, &bvalue, D3DXPT_BOOL);
ok(hr == D3D_OK, "%u - %s: SetBool failed, got %#x, expected %#x\n", i, res_full_name, hr, D3D_OK);
}
--
2.4.3
More information about the wine-patches
mailing list