msxml3: Silence a warning in ::get_baseName() for document nodes.

This commit is contained in:
Nikolay Sivov 2010-06-22 22:47:36 +04:00 committed by Alexandre Julliard
parent e17be10d44
commit d24d007fa5
2 changed files with 6 additions and 0 deletions

View File

@ -1632,6 +1632,7 @@ static HRESULT WINAPI xmlnode_get_baseName(
break;
case XML_TEXT_NODE:
case XML_COMMENT_NODE:
case XML_DOCUMENT_NODE:
break;
default:
ERR("Unhandled type %d\n", This->node->type );

View File

@ -656,6 +656,11 @@ if (0)
r = IXMLDOMDocument_get_nodeName( doc, NULL );
ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n");
str = (BSTR)0xdeadbeef;
r = IXMLDOMDocument_get_baseName( doc, &str );
ok ( r == S_FALSE, "got 0x%08x\n", r);
ok (str == NULL, "got %p\n", str);
/* content doesn't matter here */
str = NULL;
r = IXMLDOMDocument_get_nodeName( doc, &str );