Robert Shearman : rpcrt4: Make NdrBaseTypeMemorySize increment the buffer and memory size fields of MIDL_STUB_MESSAGE .

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 15 07:35:07 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: dcd0a39d4cecb64321ff2f4a672d9e4af4403e4f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=dcd0a39d4cecb64321ff2f4a672d9e4af4403e4f

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat May 13 16:59:06 2006 +0100

rpcrt4: Make NdrBaseTypeMemorySize increment the buffer and memory size fields of MIDL_STUB_MESSAGE.

---

 dlls/rpcrt4/ndr_marshall.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 65fd57d..6dc1a03 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -3553,24 +3553,40 @@ static unsigned long WINAPI NdrBaseTypeM
     case RPC_FC_CHAR:
     case RPC_FC_SMALL:
     case RPC_FC_USMALL:
+        pStubMsg->Buffer += sizeof(UCHAR);
+        pStubMsg->MemorySize += sizeof(UCHAR);
         return sizeof(UCHAR);
     case RPC_FC_WCHAR:
     case RPC_FC_SHORT:
     case RPC_FC_USHORT:
+        pStubMsg->Buffer += sizeof(USHORT);
+        pStubMsg->MemorySize += sizeof(USHORT);
         return sizeof(USHORT);
     case RPC_FC_LONG:
     case RPC_FC_ULONG:
+        pStubMsg->Buffer += sizeof(ULONG);
+        pStubMsg->MemorySize += sizeof(ULONG);
         return sizeof(ULONG);
     case RPC_FC_FLOAT:
+        pStubMsg->Buffer += sizeof(float);
+        pStubMsg->MemorySize += sizeof(float);
         return sizeof(float);
     case RPC_FC_DOUBLE:
+        pStubMsg->Buffer += sizeof(double);
+        pStubMsg->MemorySize += sizeof(double);
         return sizeof(double);
     case RPC_FC_HYPER:
+        pStubMsg->Buffer += sizeof(ULONGLONG);
+        pStubMsg->MemorySize += sizeof(ULONGLONG);
         return sizeof(ULONGLONG);
     case RPC_FC_ERROR_STATUS_T:
+        pStubMsg->Buffer += sizeof(error_status_t);
+        pStubMsg->MemorySize += sizeof(error_status_t);
         return sizeof(error_status_t);
     case RPC_FC_ENUM16:
     case RPC_FC_ENUM32:
+        pStubMsg->Buffer += sizeof(INT);
+        pStubMsg->MemorySize += sizeof(INT);
         return sizeof(INT);
     default:
         FIXME("Unhandled base type: 0x%02x\n", *pFormat);




More information about the wine-cvs mailing list