Commit b3da2202 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Fixed ISAXXMLReader_getContentHandler and ISAXXMLReader_getErrorHandler…

msxml3: Fixed ISAXXMLReader_getContentHandler and ISAXXMLReader_getErrorHandler when second argument is NULL.
parent d676f7e5
......@@ -514,6 +514,8 @@ static HRESULT WINAPI isaxxmlreader_getContentHandler(
saxreader *This = impl_from_ISAXXMLReader( iface );
TRACE("(%p)->(%p)\n", This, pContentHandler);
if(pContentHandler == NULL)
return E_POINTER;
if(This->contentHandler)
ISAXContentHandler_AddRef(This->contentHandler);
*pContentHandler = This->contentHandler;
......@@ -564,6 +566,8 @@ static HRESULT WINAPI isaxxmlreader_getErrorHandler(
saxreader *This = impl_from_ISAXXMLReader( iface );
TRACE("(%p)->(%p)\n", This, pErrorHandler);
if(pErrorHandler == NULL)
return E_POINTER;
if(This->errorHandler)
ISAXErrorHandler_AddRef(This->errorHandler);
*pErrorHandler = This->errorHandler;
......
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