Commit 7701c2c1 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 64ccbcbf
...@@ -575,7 +575,7 @@ static ULONG WINAPI ResProtocol_AddRef(IInternetProtocol *iface) ...@@ -575,7 +575,7 @@ static ULONG WINAPI ResProtocol_AddRef(IInternetProtocol *iface)
static ULONG WINAPI ResProtocol_Release(IInternetProtocol *iface) static ULONG WINAPI ResProtocol_Release(IInternetProtocol *iface)
{ {
ResProtocol *This = (ResProtocol*)iface; ResProtocol *This = ResProtocol_from_IInternetProtocol(iface);
IUnknown *pUnkOuter = This->pUnkOuter; IUnknown *pUnkOuter = This->pUnkOuter;
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment