Implement RPC_E_DISCONNECTED in proxies.
This commit is contained in:
parent
fa5c73f1cf
commit
67942791e2
|
@ -1185,6 +1185,13 @@ xCall(LPVOID retptr, int method, TMProxyImpl *tpinfo /*, args */)
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (!tpinfo->chanbuf)
|
||||
{
|
||||
WARN("Tried to use disconnected proxy\n");
|
||||
LeaveCriticalSection(&tpinfo->crit);
|
||||
return RPC_E_DISCONNECTED;
|
||||
}
|
||||
|
||||
if (relaydeb) {
|
||||
TRACE_(olerelay)("->");
|
||||
if (iname)
|
||||
|
|
|
@ -100,6 +100,13 @@ void WINAPI NdrProxySendReceive(void *This,
|
|||
HRESULT hr;
|
||||
|
||||
TRACE("(%p,%p)\n", This, pStubMsg);
|
||||
|
||||
if (!pStubMsg->pRpcChannelBuffer)
|
||||
{
|
||||
WARN("Trying to use disconnected proxy %p\n", This);
|
||||
RpcRaiseException(RPC_E_DISCONNECTED);
|
||||
}
|
||||
|
||||
pStubMsg->dwStubPhase = PROXY_SENDRECEIVE;
|
||||
hr = IRpcChannelBuffer_SendReceive(pStubMsg->pRpcChannelBuffer,
|
||||
(RPCOLEMESSAGE*)pStubMsg->RpcMsg,
|
||||
|
|
Loading…
Reference in New Issue