quartz: Check hr so we are not incrementing a NULL (Coverity 106).

This commit is contained in:
Aric Stewart 2008-10-06 07:44:29 -05:00 committed by Alexandre Julliard
parent 4d958a1cb3
commit a3c2c50809
1 changed files with 2 additions and 4 deletions

View File

@ -168,12 +168,10 @@ static HRESULT process_pattern_string(LPCWSTR wszPatternString, IAsyncReader * p
if (!(wszPatternString = strchrW(wszPatternString, ',')))
hr = E_INVALIDARG;
wszPatternString++; /* skip ',' */
if (hr == S_OK)
{
for ( ; !isxdigitW(*wszPatternString) && (*wszPatternString != ','); wszPatternString++)
;
wszPatternString++; /* skip ',' */
while (!isxdigitW(*wszPatternString) && (*wszPatternString != ',')) wszPatternString++;
for (strpos = 0; isxdigitW(*wszPatternString) && (strpos/2 < ulBytes); wszPatternString++, strpos++)
{