Piotr Caban : msxml3/tests: Added test for getContentHandler with NULL argument.

Alexandre Julliard julliard at winehq.org
Fri Jul 11 08:44:43 CDT 2008


Module: wine
Branch: master
Commit: f216514dd556e72ed90aaed55148ce58d7f5983d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f216514dd556e72ed90aaed55148ce58d7f5983d

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Fri Jul 11 00:36:38 2008 +0200

msxml3/tests: Added test for getContentHandler with NULL argument.

---

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

diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c
index 22d071a..20a3326 100644
--- a/dlls/msxml3/tests/saxreader.c
+++ b/dlls/msxml3/tests/saxreader.c
@@ -212,6 +212,9 @@ static void test_saxreader(void)
         return;
     }
 
+    hr = ISAXXMLReader_getContentHandler(reader, NULL);
+    ok(hr == E_POINTER, "Expected E_POINTER, got %08x\n", hr);
+
     hr = ISAXXMLReader_getContentHandler(reader, &lpContentHandler);
     ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
     ok(lpContentHandler == NULL, "Expected %p, got %p\n", NULL, lpContentHandler);




More information about the wine-cvs mailing list