Marcus Meissner : quartz: Handle NULL return from strchr() (Coverity).
Module: wine Branch: master Commit: 63823061ed2137544fdd8822f64bff6d29a0aa9d URL: http://source.winehq.org/git/wine.git/?a=commit;h=63823061ed2137544fdd8822f6... Author: Marcus Meissner <meissner(a)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)
participants (1)
-
Alexandre Julliard