From 0f826e7cc17f5ec4bf263c1a1e9ddb65b9d369d6 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 19 Jun 2007 12:12:00 +0100 Subject: [PATCH] rpcrt4: Use the offset to array data in embedded pointer format descriptions. --- dlls/rpcrt4/ndr_marshall.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index adf7aba169c..de6f5097cd2 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -1137,10 +1137,10 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg, } for (i = 0; i < rep; i++) { PFORMAT_STRING info = pFormat; - unsigned char *membase = pMemory + (i * stride); - unsigned char *bufbase = Mark + (i * stride); + unsigned char *membase = pMemory + ofs + (i * stride); + unsigned char *bufbase = Mark + ofs + (i * stride); unsigned u; - /* ofs doesn't seem to matter in this context */ + for (u=0; uMemory; @@ -1338,7 +1339,7 @@ static unsigned long EmbeddedPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg, /* ofs doesn't seem to matter in this context */ for (i = 0; i < rep; i++) { PFORMAT_STRING info = pFormat; - unsigned char *bufbase = Mark + (i * stride); + unsigned char *bufbase = Mark + ofs + (i * stride); unsigned u; for (u=0; uMemory;