d3dx9_36: Avoid a TRUE:FALSE conditional expression.

Matteo Bruni matteo.mystral at gmail.com
Mon Feb 29 11:24:30 CST 2016


2016-02-29 15:53 GMT+01:00 Michael Stefaniuc <mstefani at redhat.de>:
> 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);

With "d3dx9/tests: " as the patch subject prefix

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>



More information about the wine-patches mailing list