Robert Shearman : rpcrt4: Implement NdrUserMarshalMemorySize.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 18 03:56:50 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Thu May 18 03:39:19 2006 +0100

rpcrt4: Implement NdrUserMarshalMemorySize.

---

 dlls/rpcrt4/ndr_marshall.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index dbbc8e4..3ba3194 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -2592,11 +2592,16 @@ unsigned long WINAPI NdrUserMarshalMemor
                                               PFORMAT_STRING pFormat)
 {
   unsigned index = *(const WORD*)&pFormat[2];
-/*  DWORD memsize = *(const WORD*)&pFormat[4]; */
-  FIXME("(%p,%p): stub\n", pStubMsg, pFormat);
+  DWORD memsize = *(const WORD*)&pFormat[4];
+  DWORD bufsize = *(const WORD*)&pFormat[6];
+
+  TRACE("(%p,%p)\n", pStubMsg, pFormat);
   TRACE("index=%d\n", index);
 
-  return 0;
+  pStubMsg->MemorySize += memsize;
+  pStubMsg->Buffer += bufsize;
+
+  return pStubMsg->MemorySize;
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list