Michael Stefaniuc : urlmon: Avoid a cast from a COM object to an iface.

Alexandre Julliard julliard at winehq.org
Fri Sep 9 10:09:02 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Sep  8 22:20:33 2016 +0200

urlmon: Avoid a cast from a COM object to an iface.

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

---

 dlls/urlmon/sec_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c
index 0c20562..eab155d 100644
--- a/dlls/urlmon/sec_mgr.c
+++ b/dlls/urlmon/sec_mgr.c
@@ -1831,7 +1831,7 @@ HRESULT ZoneMgrImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
     TRACE("(%p %p)\n", pUnkOuter, ppobj);
     ret->IInternetZoneManagerEx2_iface.lpVtbl = &ZoneMgrImplVtbl;
     ret->ref = 1;
-    *ppobj = (IInternetZoneManagerEx*)ret;
+    *ppobj = &ret->IInternetZoneManagerEx2_iface;
 
     URLMON_LockModule();
 




More information about the wine-cvs mailing list