[PATCH] Use our parent doc if we dont have one

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu Feb 5 03:43:59 CST 2009


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

diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 7baef30..5429e6c 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -387,6 +387,11 @@ static HRESULT get_node(
 
     if ( !out )
         return E_INVALIDARG;
+
+    /* if we dont have a doc, use our parent. */
+    if(!node->doc && node->parent)
+        node->doc = node->parent->doc;
+
     *out = create_node( node );
     if (!*out)
         return S_FALSE;
-- 
1.5.4.3


--------------030307090409020907060107--



More information about the wine-patches mailing list