ole32: Fix length of buffer allocated by SNB_UserUnmarshal() (Valgrind).

This commit is contained in:
Nikolay Sivov 2015-06-04 00:49:13 +03:00 committed by Alexandre Julliard
parent 17a50f39b2
commit bfa23b637e
1 changed files with 1 additions and 1 deletions

View File

@ -2247,7 +2247,7 @@ unsigned char * __RPC_USER SNB_UserUnmarshal(ULONG *pFlags, unsigned char *pBuff
WCHAR **ptrW;
ULONG i;
ptrW = *pSnb = umcb->pStubMsg->pfnAllocate((wire->strcnt+1)*sizeof(WCHAR*) + wire->datalen);
ptrW = *pSnb = umcb->pStubMsg->pfnAllocate((wire->strcnt+1)*sizeof(WCHAR*) + wire->datalen*sizeof(WCHAR));
dest = (WCHAR*)(*pSnb + wire->strcnt + 1);
for (i = 0; i < wire->strcnt; i++)