ole32: Fix length of buffer allocated by SNB_UserUnmarshal() (Valgrind).
This commit is contained in:
parent
17a50f39b2
commit
bfa23b637e
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue