Commit e5e301b7 authored by Ricardo Filipe's avatar Ricardo Filipe Committed by Alexandre Julliard

msxml3: Check some dead store results (llvm/clang).

parent 8772c5f1
...@@ -1168,6 +1168,13 @@ static void libxmlEndElementNS( ...@@ -1168,6 +1168,13 @@ static void libxmlEndElementNS(
Prefix, SysStringLen(Prefix)); Prefix, SysStringLen(Prefix));
SysFreeString(Prefix); SysFreeString(Prefix);
if(hr != S_OK)
{
format_error_message_from_id(This, hr);
return;
}
} }
} }
...@@ -1218,6 +1225,12 @@ static void libxmlCharacters( ...@@ -1218,6 +1225,12 @@ static void libxmlCharacters(
Chars, SysStringLen(Chars)); Chars, SysStringLen(Chars));
SysFreeString(Chars); SysFreeString(Chars);
if(hr != S_OK)
{
format_error_message_from_id(This, hr);
return;
}
This->column += end-cur+1; This->column += end-cur+1;
if(lastEvent) if(lastEvent)
...@@ -1772,7 +1785,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz ...@@ -1772,7 +1785,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
hr = SAXLocator_create(This, &locator, vbInterface); hr = SAXLocator_create(This, &locator, vbInterface);
if(FAILED(hr)) if(FAILED(hr))
return E_FAIL; return hr;
locator->pParserCtxt = xmlCreateMemoryParserCtxt(buffer, size); locator->pParserCtxt = xmlCreateMemoryParserCtxt(buffer, size);
if(!locator->pParserCtxt) if(!locator->pParserCtxt)
...@@ -1797,7 +1810,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz ...@@ -1797,7 +1810,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
} }
ISAXLocator_Release((ISAXLocator*)&locator->lpSAXLocatorVtbl); ISAXLocator_Release((ISAXLocator*)&locator->lpSAXLocatorVtbl);
return S_OK; return hr;
} }
static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInterface) static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInterface)
...@@ -1813,7 +1826,7 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt ...@@ -1813,7 +1826,7 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
hr = SAXLocator_create(This, &locator, vbInterface); hr = SAXLocator_create(This, &locator, vbInterface);
if(FAILED(hr)) if(FAILED(hr))
return E_FAIL; return hr;
locator->pParserCtxt = xmlCreatePushParserCtxt( locator->pParserCtxt = xmlCreatePushParserCtxt(
&locator->saxreader->sax, locator, &locator->saxreader->sax, locator,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment