msxml3: Implement IXMLDOMComment_get_data.
This commit is contained in:
parent
c48ad71068
commit
f9d89ed36a
|
@ -474,8 +474,20 @@ static HRESULT WINAPI domcomment_get_data(
|
||||||
IXMLDOMComment *iface,
|
IXMLDOMComment *iface,
|
||||||
BSTR *p)
|
BSTR *p)
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
domcomment *This = impl_from_IXMLDOMComment( iface );
|
||||||
return E_NOTIMPL;
|
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 domcomment_put_data(
|
static HRESULT WINAPI domcomment_put_data(
|
||||||
|
|
|
@ -2104,6 +2104,12 @@ static void test_xmlTypes(void)
|
||||||
hr = IXMLDOMComment_put_data(pComment, _bstr_("This &is a ; test <>\\"));
|
hr = IXMLDOMComment_put_data(pComment, _bstr_("This &is a ; test <>\\"));
|
||||||
ok(hr == S_OK, "ret %08x\n", hr );
|
ok(hr == S_OK, "ret %08x\n", hr );
|
||||||
|
|
||||||
|
/* get data Tests */
|
||||||
|
hr = IXMLDOMComment_get_data(pComment, &str);
|
||||||
|
ok(hr == S_OK, "ret %08x\n", hr );
|
||||||
|
ok( !lstrcmpW( str, _bstr_("This &is a ; test <>\\") ), "incorrect get_data string\n");
|
||||||
|
SysFreeString(str);
|
||||||
|
|
||||||
/* get data Tests */
|
/* get data Tests */
|
||||||
hr = IXMLDOMComment_get_nodeValue(pComment, &v);
|
hr = IXMLDOMComment_get_nodeValue(pComment, &v);
|
||||||
ok(hr == S_OK, "ret %08x\n", hr );
|
ok(hr == S_OK, "ret %08x\n", hr );
|
||||||
|
|
Loading…
Reference in New Issue