msxml3: Move potential NULL ptr derefs into their if () case.
This commit is contained in:
parent
8e1e3e5c51
commit
9bccd06bf9
|
@ -531,8 +531,8 @@ static void test_domdoc( void )
|
||||||
r = IXMLDOMText_get_attributes( nodetext, &pAttribs);
|
r = IXMLDOMText_get_attributes( nodetext, &pAttribs);
|
||||||
ok(r == S_FALSE, "ret %08x\n", r );
|
ok(r == S_FALSE, "ret %08x\n", r );
|
||||||
ok( pAttribs == NULL, "pAttribs not NULL\n");
|
ok( pAttribs == NULL, "pAttribs not NULL\n");
|
||||||
|
IXMLDOMText_Release( nodetext );
|
||||||
}
|
}
|
||||||
IXMLDOMText_Release( nodetext );
|
|
||||||
SysFreeString( str );
|
SysFreeString( str );
|
||||||
|
|
||||||
/* test Create Comment */
|
/* test Create Comment */
|
||||||
|
@ -550,8 +550,8 @@ static void test_domdoc( void )
|
||||||
r = IXMLDOMComment_get_lastChild(node_comment, &nodeChild);
|
r = IXMLDOMComment_get_lastChild(node_comment, &nodeChild);
|
||||||
ok(r == S_FALSE, "ret %08x\n", r );
|
ok(r == S_FALSE, "ret %08x\n", r );
|
||||||
ok(nodeChild == NULL, "pLastChild not NULL\n");
|
ok(nodeChild == NULL, "pLastChild not NULL\n");
|
||||||
|
IXMLDOMText_Release( node_comment );
|
||||||
}
|
}
|
||||||
IXMLDOMText_Release( node_comment );
|
|
||||||
|
|
||||||
/* test Create Attribute */
|
/* test Create Attribute */
|
||||||
r = IXMLDOMDocument_createAttribute(doc, NULL, NULL);
|
r = IXMLDOMDocument_createAttribute(doc, NULL, NULL);
|
||||||
|
@ -582,8 +582,8 @@ static void test_domdoc( void )
|
||||||
r = IXMLDOMProcessingInstruction_get_lastChild(nodePI, &nodeChild);
|
r = IXMLDOMProcessingInstruction_get_lastChild(nodePI, &nodeChild);
|
||||||
ok(r == S_FALSE, "ret %08x\n", r );
|
ok(r == S_FALSE, "ret %08x\n", r );
|
||||||
ok(nodeChild == NULL, "nodeChild not NULL\n");
|
ok(nodeChild == NULL, "nodeChild not NULL\n");
|
||||||
|
IXMLDOMProcessingInstruction_Release(nodePI);
|
||||||
}
|
}
|
||||||
IXMLDOMProcessingInstruction_Release(nodePI);
|
|
||||||
|
|
||||||
r = IXMLDOMDocument_Release( doc );
|
r = IXMLDOMDocument_Release( doc );
|
||||||
ok( r == 0, "document ref count incorrect\n");
|
ok( r == 0, "document ref count incorrect\n");
|
||||||
|
|
Loading…
Reference in New Issue