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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 19 04:02:28 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 120e808f13d84eab358e12593b1924bb3e943d18
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=120e808f13d84eab358e12593b1924bb3e943d18

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Jul 18 15:53:00 2006 +0100

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

---

 dlls/msxml3/tests/domdoc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 7cd0822..ecb8308 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -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 );




More information about the wine-cvs mailing list