Commit e6edbc45 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3/tests: Fix interface leak and message typo.

parent f9cb6311
...@@ -509,8 +509,8 @@ static char *list_to_string(IXMLDOMNodeList *list) ...@@ -509,8 +509,8 @@ static char *list_to_string(IXMLDOMNodeList *list)
return buf; return buf;
} }
#define expect_node(node, expstr) { char str[4096]; node_to_string(node, str); ok(strcmp(str, expstr)==0, "Invalid node: %s, exptected %s\n", str, expstr); } #define expect_node(node, expstr) { char str[4096]; node_to_string(node, str); ok(strcmp(str, expstr)==0, "Invalid node: %s, expected %s\n", str, expstr); }
#define expect_list_and_release(list, expstr) { char *str = list_to_string(list); ok(strcmp(str, expstr)==0, "Invalid node list: %s, exptected %s\n", str, expstr); if (list) IXMLDOMNodeList_Release(list); } #define expect_list_and_release(list, expstr) { char *str = list_to_string(list); ok(strcmp(str, expstr)==0, "Invalid node list: %s, expected %s\n", str, expstr); if (list) IXMLDOMNodeList_Release(list); }
static void test_domdoc( void ) static void test_domdoc( void )
{ {
...@@ -1071,6 +1071,7 @@ static void test_domnode( void ) ...@@ -1071,6 +1071,7 @@ static void test_domnode( void )
r = IXMLDOMNode_get_ownerDocument( element, &owner ); r = IXMLDOMNode_get_ownerDocument( element, &owner );
ok( r == S_OK, "get_ownerDocument return code\n"); ok( r == S_OK, "get_ownerDocument return code\n");
ok( owner != doc, "get_ownerDocument return\n"); ok( owner != doc, "get_ownerDocument return\n");
IXMLDOMDocument_Release(owner);
type = NODE_INVALID; type = NODE_INVALID;
r = IXMLDOMNode_get_nodeType( element, &type); r = IXMLDOMNode_get_nodeType( element, &type);
......
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