rpcrt4: Avoid casting an object to IUnknown.
Cast its interface member to IUnknown instead.
This commit is contained in:
parent
4ec4bdff73
commit
70a847248f
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue