Added semi-stub for NdrProxyErrorHandler.

Fixed a case of potential stack trashing.
oldstable
Ove Kaaven 2003-05-21 18:22:49 +00:00 committed by Alexandre Julliard
parent 81e72d8f2d
commit 40c9882b6c
2 changed files with 15 additions and 3 deletions

View File

@ -121,6 +121,15 @@ void WINAPI NdrProxyFreeBuffer(void *This,
(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.@]
*/
@ -162,7 +171,9 @@ void WINAPI NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE
assert( pRpcMessage && pStubMsg && pStubDesc );
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->IsClient = TRUE;
@ -185,7 +196,8 @@ unsigned char* WINAPI NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_M
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->IsClient = FALSE;

View File

@ -285,7 +285,7 @@
@ stub NdrPipeSendReceive
@ stub NdrPipesDone
@ stub NdrPipesInitialize
@ stub NdrProxyErrorHandler
@ stdcall NdrProxyErrorHandler(long)
@ stdcall NdrProxyFreeBuffer(ptr ptr)
@ stdcall NdrProxyGetBuffer(ptr ptr)
@ stdcall NdrProxyInitialize(ptr ptr ptr ptr long)