msxml3: Add a test to check that selectSingleNode returns a NULL-ptr when it doesn't find a match.

This commit is contained in:
Huw Davies 2006-07-18 15:53:00 +01:00 committed by Alexandre Julliard
parent 2590c081a1
commit 120e808f13
1 changed files with 2 additions and 0 deletions

View File

@ -511,8 +511,10 @@ todo_wine
else
ok( FALSE, "no element\n");
node = (void*)0xdeadbeef;
r = IXMLDOMNode_selectSingleNode( element, (BSTR)szdl, &node );
ok( r == S_FALSE, "ret %08lx\n", r );
ok( node == NULL, "node %p\n", node );
r = IXMLDOMNode_selectSingleNode( element, (BSTR)szbs, &node );
ok( r == S_OK, "ret %08lx\n", r );
r = IXMLDOMNode_Release( node );