From 727e25d673929b674b6418bdaa5ab1cf05698dea Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 20 Apr 2006 11:42:16 +0100 Subject: [PATCH] rpcrt4: There's no need to set stubMsg.StackTop twice. --- dlls/rpcrt4/ndr_stubless.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index 00132e5f399..2563f2c5382 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -1170,12 +1170,9 @@ long WINAPI NdrStubCall2( { case STUBLESS_CALLSERVER: /* call the server function */ - if (pServerInfo->ThunkTable) - { - stubMsg.StackTop = args; + if (pServerInfo->ThunkTable && pServerInfo->ThunkTable[pRpcMsg->ProcNum]) pServerInfo->ThunkTable[pRpcMsg->ProcNum](&stubMsg); /* FIXME: RetVal is stored as the last argument - retrieve it */ - } else if (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT) { SERVER_ROUTINE *vtbl = *(SERVER_ROUTINE **)((CStdStubBuffer *)pThis)->pvServerObject;