Commit f9d89ed3 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Implement IXMLDOMComment_get_data.

parent c48ad710
......@@ -474,8 +474,20 @@ static HRESULT WINAPI domcomment_get_data(
IXMLDOMComment *iface,
BSTR *p)
{
FIXME("\n");
return E_NOTIMPL;
domcomment *This = impl_from_IXMLDOMComment( 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 domcomment_put_data(
......
......@@ -2105,6 +2105,12 @@ static void test_xmlTypes(void)
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 */
hr = IXMLDOMComment_get_nodeValue(pComment, &v);
ok(hr == S_OK, "ret %08x\n", hr );
ok( V_VT(&v) == VT_BSTR, "incorrect dataType type\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment