rpcrt4: Fix uninitialised memory read in ndr_marshall tests.

The memory needs to be initialised since NDR will look at the memory
to see if it needs to allocate memory for embedded pointers.
This commit is contained in:
Rob Shearman 2009-11-29 10:31:05 +00:00 committed by Alexandre Julliard
parent add909a021
commit c8f9df7f1e
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ static void test_pointer_marshal(const unsigned char *formattypes,
StubMsg.Buffer = StubMsg.BufferStart;
StubMsg.MemorySize = 0;
mem_orig = mem = HeapAlloc(GetProcessHeap(), 0, size);
mem_orig = mem = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
if(formattypes[1] & 0x10 /* FC_POINTER_DEREF */)
*(void**)mem = NULL;