From 3274770f12e88647919a0a028e167b3d96f0d5a9 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Fri, 19 Sep 2014 20:30:17 +0000 Subject: [PATCH] [RPCRT4] Addendum to r64053. Fix EmbeddedPointerFree too. Patch by Alexandre Julliard. svn path=/trunk/; revision=64199 --- reactos/dll/win32/rpcrt4/ndr_marshall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/rpcrt4/ndr_marshall.c b/reactos/dll/win32/rpcrt4/ndr_marshall.c index 857419b5a1c..f12c11a65fc 100644 --- a/reactos/dll/win32/rpcrt4/ndr_marshall.c +++ b/reactos/dll/win32/rpcrt4/ndr_marshall.c @@ -1479,7 +1479,7 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *memptr = membase + *(const SHORT*)&info[0]; unsigned char *saved_memory = pStubMsg->Memory; - pStubMsg->Memory = pMemory; + pStubMsg->Memory = membase; PointerFree(pStubMsg, *(unsigned char**)memptr, info+4); pStubMsg->Memory = saved_memory; }