msxml3: Accept PI node in on base name request.

This commit is contained in:
Nikolay Sivov 2010-02-10 15:12:39 +03:00 committed by Alexandre Julliard
parent 3f37e33497
commit 875c9c71ab
2 changed files with 16 additions and 8 deletions

View File

@ -1622,6 +1622,7 @@ static HRESULT WINAPI xmlnode_get_baseName(
{
case XML_ELEMENT_NODE:
case XML_ATTRIBUTE_NODE:
case XML_PI_NODE:
str = bstr_from_xmlChar( This->node->name );
r = S_OK;
break;

View File

@ -1032,6 +1032,13 @@ static void test_domdoc( void )
ok( !lstrcmpW( str, _bstr_("xml") ), "incorrect nodeName string\n");
SysFreeString(str);
/* test baseName */
str = (BSTR)0x1;
r = IXMLDOMProcessingInstruction_get_baseName(nodePI, &str);
ok(r == S_OK, "ret %08x\n", r );
ok( !lstrcmpW( str, _bstr_("xml") ), "incorrect nodeName string\n");
SysFreeString(str);
/* test Target */
r = IXMLDOMProcessingInstruction_get_target(nodePI, &str);
ok(r == S_OK, "ret %08x\n", r );