mshtml: Don't cast from an iface to a COM object.
Michael Stefaniuc
mstefani at redhat.de
Wed Jun 29 02:50:37 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
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);
--
2.5.5
More information about the wine-patches
mailing list