rpcrt4: There's no need to set stubMsg.StackTop twice.

This commit is contained in:
Robert Shearman 2006-04-20 11:42:16 +01:00 committed by Alexandre Julliard
parent a674ec0fda
commit 727e25d673
1 changed files with 1 additions and 4 deletions

View File

@ -1170,12 +1170,9 @@ long WINAPI NdrStubCall2(
{ {
case STUBLESS_CALLSERVER: case STUBLESS_CALLSERVER:
/* call the server function */ /* call the server function */
if (pServerInfo->ThunkTable) if (pServerInfo->ThunkTable && pServerInfo->ThunkTable[pRpcMsg->ProcNum])
{
stubMsg.StackTop = args;
pServerInfo->ThunkTable[pRpcMsg->ProcNum](&stubMsg); pServerInfo->ThunkTable[pRpcMsg->ProcNum](&stubMsg);
/* FIXME: RetVal is stored as the last argument - retrieve it */ /* FIXME: RetVal is stored as the last argument - retrieve it */
}
else if (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT) else if (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT)
{ {
SERVER_ROUTINE *vtbl = *(SERVER_ROUTINE **)((CStdStubBuffer *)pThis)->pvServerObject; SERVER_ROUTINE *vtbl = *(SERVER_ROUTINE **)((CStdStubBuffer *)pThis)->pvServerObject;