We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2557e commit cf68f21Copy full SHA for cf68f21
PIFShellExtensionsLib/PIFParser.cpp
@@ -356,7 +356,7 @@ HRESULT CBaseImageParser::ReadLineFromStream(
356
while (SUCCEEDED(hr) && IsWhitespace(chCurrent))
357
{
358
hr = IStream_Read(pStream, (void*)&chCurrent, sizeof(char));
359
- if (IsWhitespace(chCurrent))
+ if (SUCCEEDED(hr) && IsWhitespace(chCurrent))
360
361
// If we found leading white space chars we need to update
362
// our origin.
0 commit comments