Robert Shearman : rpcrt4: Implement NdrInterfacePointerMemorySize.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 17 14:48:29 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Wed May 17 14:46:06 2006 +0100

rpcrt4: Implement NdrInterfacePointerMemorySize.

---

 dlls/rpcrt4/ndr_ole.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/rpcrt4/ndr_ole.c b/dlls/rpcrt4/ndr_ole.c
index 4bdeefe..ba0404f 100644
--- a/dlls/rpcrt4/ndr_ole.c
+++ b/dlls/rpcrt4/ndr_ole.c
@@ -324,8 +324,17 @@ void WINAPI NdrInterfacePointerBufferSiz
 unsigned long WINAPI NdrInterfacePointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
                                                   PFORMAT_STRING pFormat)
 {
-  FIXME("(%p,%p): stub\n", pStubMsg, pFormat);
-  return 0;
+  ULONG size;
+
+  TRACE("(%p,%p)\n", pStubMsg, pFormat);
+
+  size = *(ULONG *)pStubMsg->Buffer;
+  pStubMsg->Buffer += 4;
+  pStubMsg->MemorySize += 4;
+
+  pStubMsg->Buffer += size;
+
+  return pStubMsg->MemorySize;
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list