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

Alexandre Julliard julliard at winehq.org
Mon Jan 30 15:39:16 CST 2017


Module: wine
Branch: master
Commit: 33d8a323d01f36785ea3db0f7c95eda5c36bea07
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=33d8a323d01f36785ea3db0f7c95eda5c36bea07

Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date:   Fri Jan 27 11:17:42 2017 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/xmllite/reader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/xmllite/reader.c b/dlls/xmllite/reader.c
index 1bb1cab..1e3c7aa 100644
--- a/dlls/xmllite/reader.c
+++ b/dlls/xmllite/reader.c
@@ -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;




More information about the wine-cvs mailing list