[PATCH] Implement IXMLDOMComment get_nodeValue
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Thu Feb 28 04:03:59 CST 2008
---
dlls/msxml3/node.c | 1 +
dlls/msxml3/tests/domdoc.c | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 23734ab..676209e 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -251,6 +251,7 @@ static HRESULT WINAPI xmlnode_get_nodeValue(
switch ( This->node->type )
{
+ case XML_COMMENT_NODE:
case XML_PI_NODE:
case XML_ATTRIBUTE_NODE:
{
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index efaae79..6d696af 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -2097,6 +2097,13 @@ static void test_xmlTypes(void)
/* put data Tests */
hr = IXMLDOMComment_put_data(pComment, _bstr_("This &is a ; test <>\\"));
ok(hr == S_OK, "ret %08x\n", hr );
+
+ /* 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");
+ ok( !lstrcmpW( V_BSTR(&v), _bstr_("This &is a ; test <>\\") ), "incorrect get_nodeValue string\n");
+ VariantClear(&v);;
/* Confirm XML text is good */
hr = IXMLDOMComment_get_xml(pComment, &str);
--
1.5.4.1
--------------090301090702080901090906--
More information about the wine-patches
mailing list