Michael Stefaniuc : msxml3: Remove useless casts to self.

Alexandre Julliard julliard at winehq.org
Wed Feb 20 16:36:59 CST 2019


Module: wine
Branch: master
Commit: 979c9db3ec248119580257e21eeb3173a3d0c851
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=979c9db3ec248119580257e21eeb3173a3d0c851

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Feb 18 21:14:02 2019 +0100

msxml3: Remove useless casts to self.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msxml3/httprequest.c | 2 +-
 dlls/msxml3/node.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 07eeb74..c6f9fdb 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -759,7 +759,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
         case VT_ARRAY|VT_UI1:
         {
             sa = V_ARRAY(body);
-            if ((hr = SafeArrayAccessData(sa, (void **)&ptr)) != S_OK)
+            if ((hr = SafeArrayAccessData(sa, &ptr)) != S_OK)
             {
                 heap_free(bsc);
                 return hr;
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index fc18935..27abf94 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -1217,7 +1217,7 @@ static HRESULT node_transform_write(xsltStylesheetPtr style, xmlDocPtr result, B
         htmlSetMetaEncoding(result, (const xmlChar *)encoding);
         if (indent == -1)
             indent = 1;
-        htmldoc_dumpcontent(output, result, (const char*)encoding, indent);
+        htmldoc_dumpcontent(output, result, encoding, indent);
     }
     else if (method && xmlStrEqual(method, (const xmlChar *)"xhtml"))
     {




More information about the wine-cvs mailing list