SafeArrayRedim: Use the correct size for resize too.

This commit is contained in:
Marcus Meissner 2004-01-12 21:06:30 +00:00 committed by Alexandre Julliard
parent d6771b1333
commit ff16b32499
1 changed files with 1 additions and 1 deletions

View File

@ -1457,7 +1457,7 @@ HRESULT WINAPI SafeArrayRedim(SAFEARRAY *psa, SAFEARRAYBOUND *psabound)
ULONG ulOldSize, ulNewSize;
PVOID pvNewData;
ulOldSize = SAFEARRAY_GetCellCount(psa);
ulOldSize = SAFEARRAY_GetCellCount(psa) * psa->cbElements;
if (ulOldSize)
ulNewSize = (ulOldSize / oldBounds->cElements) * psabound->cElements;
else {