msxml3: Add a test to check that selectSingleNode returns a NULL-ptr when it doesn't find a match.
This commit is contained in:
parent
2590c081a1
commit
120e808f13
|
@ -511,8 +511,10 @@ todo_wine
|
||||||
else
|
else
|
||||||
ok( FALSE, "no element\n");
|
ok( FALSE, "no element\n");
|
||||||
|
|
||||||
|
node = (void*)0xdeadbeef;
|
||||||
r = IXMLDOMNode_selectSingleNode( element, (BSTR)szdl, &node );
|
r = IXMLDOMNode_selectSingleNode( element, (BSTR)szdl, &node );
|
||||||
ok( r == S_FALSE, "ret %08lx\n", r );
|
ok( r == S_FALSE, "ret %08lx\n", r );
|
||||||
|
ok( node == NULL, "node %p\n", node );
|
||||||
r = IXMLDOMNode_selectSingleNode( element, (BSTR)szbs, &node );
|
r = IXMLDOMNode_selectSingleNode( element, (BSTR)szbs, &node );
|
||||||
ok( r == S_OK, "ret %08lx\n", r );
|
ok( r == S_OK, "ret %08lx\n", r );
|
||||||
r = IXMLDOMNode_Release( node );
|
r = IXMLDOMNode_Release( node );
|
||||||
|
|
Loading…
Reference in New Issue