Michael Stefaniuc : urlmon: Remove useless casts to self.

Alexandre Julliard julliard at winehq.org
Fri Mar 1 16:42:11 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Feb 28 21:39:47 2019 +0100

urlmon: Remove useless casts to self.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/urlmon/bindctx.c | 2 +-
 dlls/urlmon/file.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/urlmon/bindctx.c b/dlls/urlmon/bindctx.c
index 2759f3d..6191751 100644
--- a/dlls/urlmon/bindctx.c
+++ b/dlls/urlmon/bindctx.c
@@ -45,7 +45,7 @@ static void *get_callback_iface(BindStatusCallback *This, REFIID riid)
     void *ret;
     HRESULT hres;
 
-    hres = IBindStatusCallback_QueryInterface(This->callback, riid, (void**)&ret);
+    hres = IBindStatusCallback_QueryInterface(This->callback, riid, &ret);
     if(FAILED(hres) && This->serv_prov)
         hres = IServiceProvider_QueryService(This->serv_prov, riid, riid, &ret);
 
diff --git a/dlls/urlmon/file.c b/dlls/urlmon/file.c
index 11e6ece..cc1ba81 100644
--- a/dlls/urlmon/file.c
+++ b/dlls/urlmon/file.c
@@ -434,7 +434,7 @@ HRESULT FileProtocol_Construct(IUnknown *outer, LPVOID *ppobj)
     ret->file = INVALID_HANDLE_VALUE;
     ret->priority = 0;
     ret->ref = 1;
-    ret->outer = outer ? outer : (IUnknown*)&ret->IUnknown_outer;
+    ret->outer = outer ? outer : &ret->IUnknown_outer;
 
     *ppobj = &ret->IUnknown_outer;
     return S_OK;




More information about the wine-cvs mailing list