xmllite/reader: Handle NULL node type argument in Read().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Louis Lenders 2017-01-27 11:17:42 +03:00 committed by Alexandre Julliard
parent 1ed0631e5d
commit 33d8a323d0
1 changed files with 2 additions and 1 deletions

View File

@ -2777,7 +2777,8 @@ static HRESULT WINAPI xmlreader_Read(IXmlReader* iface, XmlNodeType *nodetype)
if (hr == S_OK)
{
TRACE("node type %s\n", debugstr_nodetype(This->nodetype));
*nodetype = This->nodetype;
if (nodetype)
*nodetype = This->nodetype;
}
return hr;