Module: wine Branch: master Commit: 426418f725b732ab4ab06823ea380c42f18d4ec6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=426418f725b732ab4ab06823ea...
Author: Rob Shearman rob@codeweavers.com Date: Mon Jan 21 14:14:00 2008 +0000
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 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index af06fb8..1f6cd57 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: