Robert Shearman : msxml3: Initialise output interface pointers to NULL in xmlnodelist_QueryInterface and xmlnodelist_nextNode .

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 12 10:02:21 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 6dd935bc3314d5cb080b878464164af7aab5fcc4
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=6dd935bc3314d5cb080b878464164af7aab5fcc4

Author: Robert Shearman <rob at codeweavers.com>
Date:   Mon Jun 12 01:34:17 2006 +0100

msxml3: Initialise output interface pointers to NULL in xmlnodelist_QueryInterface and xmlnodelist_nextNode.

---

 dlls/msxml3/nodelist.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/nodelist.c b/dlls/msxml3/nodelist.c
index b85ce36..a4cf434 100644
--- a/dlls/msxml3/nodelist.c
+++ b/dlls/msxml3/nodelist.c
@@ -197,6 +197,7 @@ static HRESULT WINAPI xmlnodelist_QueryI
     else
     {
         FIXME("interface %s not implemented\n", debugstr_guid(riid));
+        *ppvObject = NULL;
         return E_NOINTERFACE;
     }
 
@@ -360,6 +361,8 @@ static HRESULT WINAPI xmlnodelist_nextNo
 
     TRACE("%p %p\n", This, nextItem );
 
+    *nextItem = NULL;
+
     if(This->enum_children)
         top_level_node = &This->top_level_node;
 




More information about the wine-cvs mailing list