rpcrt4: Initialise pStubMsg->MemorySize to zero before calling

ComplexStructMemorySize from NdrComplexArrayUnmarshall.
This commit is contained in:
Robert Shearman 2006-06-10 12:33:26 +01:00 committed by Alexandre Julliard
parent 539b48bff4
commit 35982d72f5
1 changed files with 1 additions and 0 deletions

View File

@ -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;