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

Alexandre Julliard julliard at winehq.org
Thu Apr 20 12:35:09 CDT 2017


Module: wine
Branch: stable
Commit: 7a028ca613dbf9193d6c336fb6199431eef763cc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7a028ca613dbf9193d6c336fb6199431eef763cc

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>
(cherry picked from commit 33d8a323d01f36785ea3db0f7c95eda5c36bea07)
Signed-off-by: Michael Stefaniuc <mstefani 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 de61d13..6d961cc 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