Alistair Leslie-Hughes : msxml3: clang corrections.

Alexandre Julliard julliard at winehq.org
Tue Jul 5 12:59:05 CDT 2011


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Sun Jul  3 18:14:12 2011 +1000

msxml3: clang corrections.

---

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

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index f1c2b4b..4f0a5f1 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -1998,7 +1998,6 @@ static HRESULT internal_parse(
 
     TRACE("(%p)->(%s)\n", This, debugstr_variant(&varInput));
 
-    hr = S_OK;
     switch(V_VT(&varInput))
     {
         case VT_BSTR:
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index fd62062..bced22c 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -5553,6 +5553,7 @@ static void test_cloneNode(void )
     hr = IXMLDOMNode_get_attributes(node_clone, &mapAttr);
     ok(hr == S_OK, "ret %08x\n", hr );
     hr = IXMLDOMNamedNodeMap_get_length(mapAttr, &attr_cnt1);
+    ok(hr == S_OK, "ret %08x\n", hr );
     ok(attr_cnt1 == 3, "Attribute count should be 3 (%d)\n", attr_cnt1);
     IXMLDOMNamedNodeMap_Release(mapAttr);
 
@@ -9746,6 +9747,7 @@ static void test_get_attributes(void)
 
     str = SysAllocString( szComplete4 );
     hr = IXMLDOMDocument_loadXML(doc, str, &b);
+    ok(hr == S_OK, "got %08x\n", hr);
     SysFreeString(str);
 
     hr = IXMLDOMDocument_get_attributes(doc, NULL);




More information about the wine-cvs mailing list