Module: wine Branch: master Commit: 7701c2c1661417b12265c4c7f25f60ffe60fd48c URL: http://source.winehq.org/git/wine.git/?a=commit;h=7701c2c1661417b12265c4c7f2...
Author: Michael Stefaniuc mstefani@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@redhat.de Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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);