Robert Shearman : rpcrt4: Make ComplexStructSize increment the buffer.

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


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat May 13 17:00:09 2006 +0100

rpcrt4: Make ComplexStructSize increment the buffer.

---

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

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index a868173..18c1874 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -1778,22 +1778,28 @@ unsigned long WINAPI ComplexStructSize(P
     case RPC_FC_SHORT:
     case RPC_FC_USHORT:
       size += 2;
+      pStubMsg->Buffer += 2;
       break;
     case RPC_FC_LONG:
     case RPC_FC_ULONG:
       size += 4;
+      pStubMsg->Buffer += 4;
       break;
     case RPC_FC_POINTER:
       size += 4;
+      pStubMsg->Buffer += 4;
       break;
     case RPC_FC_ALIGNM4:
       ALIGN_LENGTH(size, 4);
+      ALIGN_POINTER(pStubMsg->Buffer, 4);
       break;
     case RPC_FC_ALIGNM8:
       ALIGN_LENGTH(size, 8);
+      ALIGN_POINTER(pStubMsg->Buffer, 8);
       break;
     case RPC_FC_STRUCTPAD2:
       size += 2;
+      pStubMsg->Buffer += 2;
       break;
     case RPC_FC_EMBEDDED_COMPLEX:
       size += pFormat[1];




More information about the wine-cvs mailing list