Marcus Meissner : quartz: Handle NULL return from strchr() (Coverity).

Alexandre Julliard julliard at winehq.org
Tue May 3 13:30:58 CDT 2011


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

Author: Marcus Meissner <meissner at suse.de>
Date:   Tue May  3 16:19:02 2011 +0200

quartz: Handle NULL return from strchr() (Coverity).

---

 dlls/quartz/filesource.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index 6093713..ab72f4f 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -179,8 +179,8 @@ static HRESULT process_pattern_string(LPCWSTR wszPatternString, IAsyncReader * p
 
         if (!(wszPatternString = strchrW(wszPatternString, ',')))
             hr = E_INVALIDARG;
-    
-        wszPatternString++; /* skip ',' */
+        else
+            wszPatternString++; /* skip ',' */
     }
 
     if (hr == S_OK)




More information about the wine-cvs mailing list