Alistair Leslie-Hughes : msxml3: Implement get_data for PI Nodes.
Alexandre Julliard
julliard at winehq.org
Thu Feb 21 07:42:18 CST 2008
Module: wine
Branch: master
Commit: 8c4f9fe62c7d373a4b9bbd2e41ef21fe31ff2426
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8c4f9fe62c7d373a4b9bbd2e41ef21fe31ff2426
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Feb 20 22:34:31 2008 +1100
msxml3: Implement get_data for PI Nodes.
---
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..fcef7a0 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(
More information about the wine-cvs
mailing list