From 426418f725b732ab4ab06823ea380c42f18d4ec6 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 21 Jan 2008 14:14:00 +0000 Subject: [PATCH] rpcrt4: Don't set BufferStart and BufferEnd in NdrStubCall2. The operations peformed by the stubless code should roughly match what operations MIDL outputs in code, and it doesn't do this. --- dlls/rpcrt4/ndr_stubless.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index af06fb8c302..1f6cd57a8b1 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -1464,9 +1464,7 @@ LONG WINAPI NdrStubCall2( Status = I_RpcGetBuffer(pRpcMsg); if (Status) RpcRaiseException(Status); - stubMsg.BufferStart = pRpcMsg->Buffer; - stubMsg.BufferEnd = stubMsg.BufferStart + stubMsg.BufferLength; - stubMsg.Buffer = stubMsg.BufferStart; + stubMsg.Buffer = pRpcMsg->Buffer; } break; case STUBLESS_UNMARSHAL: