Michael Stefaniuc : mshtml: Don't cast from an iface to a COM object.

Alexandre Julliard julliard at winehq.org
Sun Jul 3 12:18:28 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Jun 29 09:50:37 2016 +0200

mshtml: Don't cast from an iface to a COM object.

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/mshtml/protocol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c
index 0d822b4..c7ea603 100644
--- a/dlls/mshtml/protocol.c
+++ b/dlls/mshtml/protocol.c
@@ -575,7 +575,7 @@ static ULONG WINAPI ResProtocol_AddRef(IInternetProtocol *iface)
 
 static ULONG WINAPI ResProtocol_Release(IInternetProtocol *iface)
 {
-    ResProtocol *This = (ResProtocol*)iface;
+    ResProtocol *This = ResProtocol_from_IInternetProtocol(iface);
     IUnknown *pUnkOuter = This->pUnkOuter;
     ULONG ref = InterlockedDecrement(&This->ref);
 




More information about the wine-cvs mailing list