Michael Stefaniuc : quartz: Remove always true if subexpression ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 8 16:12:12 CST 2015


Module: wine
Branch: master
Commit: b31ef9c80abf5dc21aa937835ff2aa6e58fbfdbe
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b31ef9c80abf5dc21aa937835ff2aa6e58fbfdbe

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jan  8 11:09:42 2015 +0100

quartz: Remove always true if subexpression (PVS-Studio).

---

 dlls/quartz/avisplit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/quartz/avisplit.c b/dlls/quartz/avisplit.c
index 1f57045..ee03e08 100644
--- a/dlls/quartz/avisplit.c
+++ b/dlls/quartz/avisplit.c
@@ -1199,7 +1199,7 @@ static HRESULT AVISplitter_InputPin_PreConnect(IPin * iface, IPin * pConnectPin,
             indexes = 0;
         }
     }
-    else if (!indexes && pAviSplit->oldindex)
+    else if (pAviSplit->oldindex)
         indexes = pAviSplit->Parser.cStreams;
 
     if (!indexes && pAviSplit->AviHeader.dwFlags & AVIF_MUSTUSEINDEX)




More information about the wine-cvs mailing list