From ec2a9cef3a52bd59a1faa028b7a4c49123c02285 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 24 May 2006 23:04:35 +0100 Subject: [PATCH] rpcrt4: Set the Memory field of the stub message structure to the start of the memory that an embedded pointer is embedded in so that FC_POINTER conformance works correctly. --- dlls/rpcrt4/ndr_marshall.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index f6888c81927..e7e1ff96047 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -1041,7 +1041,11 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg, for (u=0; uMemory; + + pStubMsg->Memory = pMemory; PointerMarshall(pStubMsg, bufptr, *(unsigned char**)memptr, info+4); + pStubMsg->Memory = saved_memory; } } pFormat += 8 * count; @@ -1172,7 +1176,11 @@ static void EmbeddedPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg, unsigned u; for (u=0; uMemory; + + pStubMsg->Memory = pMemory; PointerBufferSize(pStubMsg, *(unsigned char**)memptr, info+4); + pStubMsg->Memory = saved_memory; } } pFormat += 8 * count; @@ -1291,7 +1299,11 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg, unsigned u; for (u=0; uMemory; + + pStubMsg->Memory = pMemory; PointerFree(pStubMsg, *(unsigned char**)memptr, info+4); + pStubMsg->Memory = saved_memory; } } pFormat += 8 * count;