[PATCH] wineandroid.drv: In AudioClient_IsFormatSupported remove unneeded statement (cppcheck)

Andrew Eikum aeikum at codeweavers.com
Tue Oct 3 14:10:30 CDT 2017


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Tue, Oct 03, 2017 at 05:43:23PM +0200, Fabian Maurer wrote:
> Found by cppcheck.
> 
> Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
> ---
>  dlls/wineandroid.drv/mmdevdrv.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/dlls/wineandroid.drv/mmdevdrv.c b/dlls/wineandroid.drv/mmdevdrv.c
> index 275b652c33..84aafb7dea 100644
> --- a/dlls/wineandroid.drv/mmdevdrv.c
> +++ b/dlls/wineandroid.drv/mmdevdrv.c
> @@ -1079,11 +1079,8 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
>  
>      dump_fmt(pwfx);
>  
> -    if(outpwfx){
> +    if(outpwfx)
>          *outpwfx = NULL;
> -        if(mode != AUDCLNT_SHAREMODE_SHARED)
> -            outpwfx = NULL;
> -    }
>  
>      hr = waveformat_to_pcm(This, pwfx, &pcm);
>      TRACE("returning: %08x\n", hr);
> -- 
> 2.14.2
> 
> 
> 



More information about the wine-patches mailing list