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

msxml3: Enable test for bad argument / fix memory leak.

parent 8de2d529
...@@ -405,12 +405,9 @@ static void test_domdoc( void ) ...@@ -405,12 +405,9 @@ static void test_domdoc( void )
ok( b == VARIANT_TRUE, "failed to load XML string\n"); ok( b == VARIANT_TRUE, "failed to load XML string\n");
SysFreeString( str ); SysFreeString( str );
/* try with a null out pointer - crashes */ /* try with a null out pointer */
if (0)
{
r = IXMLDOMDocument_get_documentElement( doc, NULL ); r = IXMLDOMDocument_get_documentElement( doc, NULL );
ok( r == S_OK, "should be no document element\n"); ok( r == E_INVALIDARG, "should be no document element\n");
}
/* check if nodename is correct */ /* check if nodename is correct */
r = IXMLDOMDocument_get_nodeName( doc, NULL ); r = IXMLDOMDocument_get_nodeName( doc, NULL );
...@@ -704,6 +701,7 @@ todo_wine ...@@ -704,6 +701,7 @@ todo_wine
r = IXMLDOMNode_get_baseName( node, &str ); r = IXMLDOMNode_get_baseName( node, &str );
ok( r == S_OK, "get_baseName returned wrong code\n"); ok( r == S_OK, "get_baseName returned wrong code\n");
ok( lstrcmpW(str,szdl) == 0, "basename was wrong\n"); ok( lstrcmpW(str,szdl) == 0, "basename was wrong\n");
SysFreeString( str );
r = IXMLDOMNode_get_nodeValue( node, &var ); r = IXMLDOMNode_get_nodeValue( node, &var );
ok( r == S_OK, "returns %08x\n", r ); ok( r == S_OK, "returns %08x\n", r );
......
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