[RPCRT4]
authorEric Kohl <eric.kohl@reactos.org>
Fri, 19 Sep 2014 20:30:17 +0000 (20:30 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 19 Sep 2014 20:30:17 +0000 (20:30 +0000)
Addendum to r64053.
Fix EmbeddedPointerFree too. Patch by Alexandre Julliard.

svn path=/trunk/; revision=64199

reactos/dll/win32/rpcrt4/ndr_marshall.c

index 857419b..f12c11a 100644 (file)
@@ -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;
       }