Commit 9bccd06b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msxml3: Move potential NULL ptr derefs into their if () case.

parent 8e1e3e5c
......@@ -531,8 +531,8 @@ static void test_domdoc( void )
r = IXMLDOMText_get_attributes( nodetext, &pAttribs);
ok(r == S_FALSE, "ret %08x\n", r );
ok( pAttribs == NULL, "pAttribs not NULL\n");
}
IXMLDOMText_Release( nodetext );
}
SysFreeString( str );
/* test Create Comment */
......@@ -550,8 +550,8 @@ static void test_domdoc( void )
r = IXMLDOMComment_get_lastChild(node_comment, &nodeChild);
ok(r == S_FALSE, "ret %08x\n", r );
ok(nodeChild == NULL, "pLastChild not NULL\n");
}
IXMLDOMText_Release( node_comment );
}
/* test Create Attribute */
r = IXMLDOMDocument_createAttribute(doc, NULL, NULL);
......@@ -582,8 +582,8 @@ static void test_domdoc( void )
r = IXMLDOMProcessingInstruction_get_lastChild(nodePI, &nodeChild);
ok(r == S_FALSE, "ret %08x\n", r );
ok(nodeChild == NULL, "nodeChild not NULL\n");
}
IXMLDOMProcessingInstruction_Release(nodePI);
}
r = IXMLDOMDocument_Release( doc );
ok( r == 0, "document ref count incorrect\n");
......
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