quartz: Check hr so we are not incrementing a NULL (Coverity 106).
This commit is contained in:
parent
4d958a1cb3
commit
a3c2c50809
|
@ -168,12 +168,10 @@ static HRESULT process_pattern_string(LPCWSTR wszPatternString, IAsyncReader * p
|
||||||
if (!(wszPatternString = strchrW(wszPatternString, ',')))
|
if (!(wszPatternString = strchrW(wszPatternString, ',')))
|
||||||
hr = E_INVALIDARG;
|
hr = E_INVALIDARG;
|
||||||
|
|
||||||
wszPatternString++; /* skip ',' */
|
|
||||||
|
|
||||||
if (hr == S_OK)
|
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++)
|
for (strpos = 0; isxdigitW(*wszPatternString) && (strpos/2 < ulBytes); wszPatternString++, strpos++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue