msxml3: Use defined error code for no error case.

This commit is contained in:
Nikolay Sivov 2010-11-07 22:22:29 +03:00 committed by Alexandre Julliard
parent 99e3873f30
commit 804c50fb6c
1 changed files with 2 additions and 2 deletions

View File

@ -1856,14 +1856,14 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
if(hr != S_OK)
break;
if(xmlParseChunk(locator->pParserCtxt, data, dataRead, 0)) hr = E_FAIL;
if(xmlParseChunk(locator->pParserCtxt, data, dataRead, 0) != XML_ERR_OK) hr = E_FAIL;
else hr = locator->ret;
if(hr != S_OK) break;
if(dataRead != sizeof(data))
{
if(xmlParseChunk(locator->pParserCtxt, data, 0, 1)) hr = E_FAIL;
if(xmlParseChunk(locator->pParserCtxt, data, 0, 1) != XML_ERR_OK) hr = E_FAIL;
else hr = locator->ret;
break;