Calling SafeArrayDestroy on a destroyed array should be a no-op.

This commit is contained in:
Alberto Massari 2002-12-12 22:59:07 +00:00 committed by Alexandre Julliard
parent dcc5b4fe53
commit 059cffd728
1 changed files with 3 additions and 0 deletions

View File

@ -578,6 +578,9 @@ HRESULT WINAPI SafeArrayDestroyData(
if(psa->cLocks > 0)
return DISP_E_ARRAYISLOCKED;
if(psa->pvData==NULL)
return S_OK;
ulWholeArraySize = getArraySize(psa);
if(isPointer(psa->fFeatures)) { /* release the pointers */