>From 8cec8641e86fc3f5d61735ea7dc95bef44efc258 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Sun, 27 Nov 2011 20:24:52 +0300
Subject: [PATCH 2/4] Use common helper for IXMLDOMText_get_nodeValue()

---
 dlls/msxml3/text.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/dlls/msxml3/text.c b/dlls/msxml3/text.c
index 6540773..abf11b3 100644
--- a/dlls/msxml3/text.c
+++ b/dlls/msxml3/text.c
@@ -171,12 +171,7 @@ static HRESULT WINAPI domtext_get_nodeValue(
 
     TRACE("(%p)->(%p)\n", This, value);
 
-    if(!value)
-        return E_INVALIDARG;
-
-    V_VT(value) = VT_BSTR;
-    V_BSTR(value) = bstr_from_xmlChar(This->node.node->content);
-    return S_OK;
+    return node_get_content(&This->node, value);
 }
 
 static HRESULT WINAPI domtext_put_nodeValue(
-- 
1.5.6.5


