diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c index 60937138b7d..ab72f4f185a 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)