Rob Shearman : rpcrt4: Don't set BufferStart and BufferEnd in NdrStubCall2.

Alexandre Julliard julliard at winehq.org
Tue Jan 22 06:01:45 CST 2008


Module: wine
Branch: master
Commit: 426418f725b732ab4ab06823ea380c42f18d4ec6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=426418f725b732ab4ab06823ea380c42f18d4ec6

Author: Rob Shearman <rob at 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:




More information about the wine-cvs mailing list