rpcrt4: Initialise pStubMsg->MemorySize to zero before calling ComplexStructMemorySize from NdrComplexArrayUnmarshall.

This commit is contained in:
Robert Shearman 2006-06-09 17:25:16 +01:00 committed by Alexandre Julliard
parent e3df112a39
commit 578df90d6d
1 changed files with 1 additions and 0 deletions

View File

@ -2573,6 +2573,7 @@ unsigned long WINAPI NdrComplexArrayMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
SavedMemorySize = pStubMsg->MemorySize;
Buffer = pStubMsg->Buffer;
pStubMsg->MemorySize = 0;
esize = ComplexStructMemorySize(pStubMsg, pFormat);
pStubMsg->Buffer = Buffer;