Commit effac656 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

rpcrt4: Don't update StubMsg->MemorySize while unmarshaling.

Add a bunch of marshaling tests (based on a program by Rob Shearman).
parent 8bed7bb6
......@@ -3991,7 +3991,9 @@ static unsigned char *WINAPI NdrBaseTypeUnmarshall(
if (fMustAlloc || !*ppMemory)
{
unsigned char *Buffer = pStubMsg->Buffer;
unsigned long MemorySize = pStubMsg->MemorySize;
*ppMemory = NdrAllocate(pStubMsg, NdrBaseTypeMemorySize(pStubMsg, pFormat));
pStubMsg->MemorySize = MemorySize;
pStubMsg->Buffer = Buffer;
}
......
Makefile
generated.ok
ndr_marshall.ok
rpc.ok
testlist.c
......@@ -7,6 +7,7 @@ IMPORTS = rpcrt4 kernel32
CTESTS = \
generated.c \
ndr_marshall.c \
rpc.c
@MAKE_TEST_RULES@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment