rpcrt4: Initialise pStubMsg->MemorySize to zero before calling
ComplexStructMemorySize from NdrComplexArrayUnmarshall.
This commit is contained in:
parent
539b48bff4
commit
35982d72f5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue