ole32: Cleanup IRpcChannelBuffer.

This commit is contained in:
Nikolay Sivov 2012-10-14 10:38:04 -04:00 committed by Alexandre Julliard
parent af5cee1862
commit 27d59c8919
1 changed files with 6 additions and 6 deletions

View File

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