[PATCH] Implement get_data for PI Nodes

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed Feb 20 05:34:31 CST 2008


---
 dlls/msxml3/pi.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/msxml3/pi.c b/dlls/msxml3/pi.c
index a0b0cf2..e975195 100644
--- a/dlls/msxml3/pi.c
+++ b/dlls/msxml3/pi.c
@@ -483,8 +483,20 @@ static HRESULT WINAPI dom_pi_get_data(
     IXMLDOMProcessingInstruction *iface,
     BSTR *p)
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
+    HRESULT hr = E_FAIL;
+    VARIANT vRet;
+    
+    if(!p)
+        return E_INVALIDARG;
+    
+    hr = IXMLDOMNode_get_nodeValue( This->node, &vRet );
+    if(hr == S_OK)
+    {
+        *p = V_BSTR(&vRet);
+    }
+    
+    return hr;
 }
 
 static HRESULT WINAPI dom_pi_put_data(
-- 
1.5.4.1


--------------020801040504080307080006--




More information about the wine-patches mailing list