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

Fabian Maurer dark.shadow4 at web.de
Tue Oct 3 10:43:23 CDT 2017


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