Commit 27d59c89 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Cleanup IRpcChannelBuffer.

parent af5cee18
......@@ -94,8 +94,8 @@ static inline void get_rpc_endpoint(LPWSTR endpoint, const OXID *oxid)
typedef struct
{
const IRpcChannelBufferVtbl *lpVtbl;
LONG refs;
IRpcChannelBuffer IRpcChannelBuffer_iface;
LONG refs;
} RpcChannelBuffer;
typedef struct
......@@ -1142,7 +1142,7 @@ HRESULT RPC_CreateClientChannel(const OXID *oxid, const IPID *ipid,
return E_OUTOFMEMORY;
}
This->super.lpVtbl = &ClientRpcChannelBufferVtbl;
This->super.IRpcChannelBuffer_iface.lpVtbl = &ClientRpcChannelBufferVtbl;
This->super.refs = 1;
This->bind = bind;
apartment_getoxid(COM_CurrentApt(), &This->oxid);
......@@ -1151,7 +1151,7 @@ HRESULT RPC_CreateClientChannel(const OXID *oxid, const IPID *ipid,
This->dest_context_data = dest_context_data;
This->event = NULL;
*chan = (IRpcChannelBuffer*)This;
*chan = &This->super.IRpcChannelBuffer_iface;
return S_OK;
}
......@@ -1162,10 +1162,10 @@ HRESULT RPC_CreateServerChannel(IRpcChannelBuffer **chan)
if (!This)
return E_OUTOFMEMORY;
This->lpVtbl = &ServerRpcChannelBufferVtbl;
This->IRpcChannelBuffer_iface.lpVtbl = &ServerRpcChannelBufferVtbl;
This->refs = 1;
*chan = (IRpcChannelBuffer*)This;
*chan = &This->IRpcChannelBuffer_iface;
return S_OK;
}
......
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