Added semi-stub for NdrProxyErrorHandler.
Fixed a case of potential stack trashing.
This commit is contained in:
parent
81e72d8f2d
commit
40c9882b6c
|
@ -121,6 +121,15 @@ void WINAPI NdrProxyFreeBuffer(void *This,
|
||||||
(RPCOLEMESSAGE*)pStubMsg->RpcMsg);
|
(RPCOLEMESSAGE*)pStubMsg->RpcMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* NdrProxyErrorHandler [RPCRT4.@]
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI NdrProxyErrorHandler(DWORD dwExceptionCode)
|
||||||
|
{
|
||||||
|
FIXME("(0x%08lx): semi-stub\n", dwExceptionCode);
|
||||||
|
return MAKE_HRESULT(SEVERITY_ERROR, FACILITY_RPC, RPC_S_CALL_FAILED);
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* NdrStubInitialize [RPCRT4.@]
|
* NdrStubInitialize [RPCRT4.@]
|
||||||
*/
|
*/
|
||||||
|
@ -162,7 +171,9 @@ void WINAPI NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE
|
||||||
assert( pRpcMessage && pStubMsg && pStubDesc );
|
assert( pRpcMessage && pStubMsg && pStubDesc );
|
||||||
|
|
||||||
memset(pRpcMessage, 0, sizeof(RPC_MESSAGE));
|
memset(pRpcMessage, 0, sizeof(RPC_MESSAGE));
|
||||||
memset(pStubMsg, 0, sizeof(MIDL_STUB_MESSAGE));
|
|
||||||
|
/* not everyone allocates stack space for w2kReserved */
|
||||||
|
memset(pStubMsg, 0, sizeof(*pStubMsg) - sizeof(pStubMsg->w2kReserved));
|
||||||
|
|
||||||
pStubMsg->ReuseBuffer = FALSE;
|
pStubMsg->ReuseBuffer = FALSE;
|
||||||
pStubMsg->IsClient = TRUE;
|
pStubMsg->IsClient = TRUE;
|
||||||
|
@ -185,7 +196,8 @@ unsigned char* WINAPI NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_M
|
||||||
|
|
||||||
assert( pRpcMsg && pStubMsg && pStubDesc );
|
assert( pRpcMsg && pStubMsg && pStubDesc );
|
||||||
|
|
||||||
memset(pStubMsg, 0, sizeof(MIDL_STUB_MESSAGE));
|
/* not everyone allocates stack space for w2kReserved */
|
||||||
|
memset(pStubMsg, 0, sizeof(*pStubMsg) - sizeof(pStubMsg->w2kReserved));
|
||||||
|
|
||||||
pStubMsg->ReuseBuffer = TRUE;
|
pStubMsg->ReuseBuffer = TRUE;
|
||||||
pStubMsg->IsClient = FALSE;
|
pStubMsg->IsClient = FALSE;
|
||||||
|
|
|
@ -285,7 +285,7 @@
|
||||||
@ stub NdrPipeSendReceive
|
@ stub NdrPipeSendReceive
|
||||||
@ stub NdrPipesDone
|
@ stub NdrPipesDone
|
||||||
@ stub NdrPipesInitialize
|
@ stub NdrPipesInitialize
|
||||||
@ stub NdrProxyErrorHandler
|
@ stdcall NdrProxyErrorHandler(long)
|
||||||
@ stdcall NdrProxyFreeBuffer(ptr ptr)
|
@ stdcall NdrProxyFreeBuffer(ptr ptr)
|
||||||
@ stdcall NdrProxyGetBuffer(ptr ptr)
|
@ stdcall NdrProxyGetBuffer(ptr ptr)
|
||||||
@ stdcall NdrProxyInitialize(ptr ptr ptr ptr long)
|
@ stdcall NdrProxyInitialize(ptr ptr ptr ptr long)
|
||||||
|
|
Loading…
Reference in New Issue