Commit 042f8953 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed size calculation on redim if old size was 0.

parent db1113fe
...@@ -1463,7 +1463,7 @@ HRESULT WINAPI SafeArrayRedim(SAFEARRAY *psa, SAFEARRAYBOUND *psabound) ...@@ -1463,7 +1463,7 @@ HRESULT WINAPI SafeArrayRedim(SAFEARRAY *psa, SAFEARRAYBOUND *psabound)
else { else {
int oldelems = oldBounds->cElements; int oldelems = oldBounds->cElements;
oldBounds->cElements = psabound->cElements; oldBounds->cElements = psabound->cElements;
ulNewSize = SAFEARRAY_GetCellCount(psa); ulNewSize = SAFEARRAY_GetCellCount(psa) * psa->cbElements;
oldBounds->cElements = oldelems; oldBounds->cElements = oldelems;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment