[msxml3/tests] Cast-qual warning fixes

Paul Vriens paul.vriens.wine at gmail.com
Tue Jan 23 07:39:01 CST 2007


Hi,

fix the warnings and remove the now unneeded casts.

Changelog
   Cast-qual warning fixes

Cheers,

Paul.
-------------- next part --------------
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index ef660ee..104bd5a 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -91,10 +91,10 @@ static const WCHAR szDocument[] = {
 };
 
 static const WCHAR szOpen[] = { 'o','p','e','n',0 };
-static const WCHAR szdl[] = { 'd','l',0 };
+static WCHAR szdl[] = { 'd','l',0 };
 static const WCHAR szvr[] = { 'v','r',0 };
 static const WCHAR szlc[] = { 'l','c',0 };
-static const WCHAR szbs[] = { 'b','s',0 };
+static WCHAR szbs[] = { 'b','s',0 };
 static const WCHAR szstr1[] = { 's','t','r','1',0 };
 static const WCHAR szstr2[] = { 's','t','r','2',0 };
 static const WCHAR szstar[] = { '*',0 };
@@ -545,10 +545,10 @@ todo_wine
         ok( FALSE, "no element\n");
 
     node = (void*)0xdeadbeef;
-    r = IXMLDOMNode_selectSingleNode( element, (BSTR)szdl, &node );
+    r = IXMLDOMNode_selectSingleNode( element, szdl, &node );
     ok( r == S_FALSE, "ret %08x\n", r );
     ok( node == NULL, "node %p\n", node );
-    r = IXMLDOMNode_selectSingleNode( element, (BSTR)szbs, &node );
+    r = IXMLDOMNode_selectSingleNode( element, szbs, &node );
     ok( r == S_OK, "ret %08x\n", r );
     r = IXMLDOMNode_Release( node );
     ok( r == 0, "ret %08x\n", r );
-- 
1.4.4.4



More information about the wine-patches mailing list