Commit 35982d72 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

rpcrt4: Initialise pStubMsg->MemorySize to zero before calling

ComplexStructMemorySize from NdrComplexArrayUnmarshall.
parent 539b48bf
......@@ -2538,6 +2538,7 @@ unsigned char * WINAPI NdrComplexArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
pFormat = ReadVariance(pStubMsg, pFormat, pStubMsg->MaxCount);
Buffer = pStubMsg->Buffer;
pStubMsg->MemorySize = 0;
esize = ComplexStructMemorySize(pStubMsg, pFormat);
pStubMsg->Buffer = Buffer;
......
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