rpcrt4: Avoid casting an object to IUnknown.

Cast its interface member to IUnknown instead.
This commit is contained in:
Dmitry Timoshkov 2022-12-13 20:59:19 -06:00 committed by Alexandre Julliard
parent 4ec4bdff73
commit 70a847248f

View file

@ -332,7 +332,7 @@ HRESULT StdProxy_Construct(REFIID riid,
This = calloc(1, sizeof(StdProxyImpl));
if (!This) return E_OUTOFMEMORY;
if (!pUnkOuter) pUnkOuter = (IUnknown *)This;
if (!pUnkOuter) pUnkOuter = (IUnknown *)&This->IRpcProxyBuffer_iface;
This->IRpcProxyBuffer_iface.lpVtbl = &StdProxy_Vtbl;
This->PVtbl = vtbl->Vtbl;
/* one reference for the proxy */