Calling SafeArrayDestroy on a destroyed array should be a no-op.
This commit is contained in:
parent
dcc5b4fe53
commit
059cffd728
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue