Commit 059cffd7 authored by Alberto Massari's avatar Alberto Massari Committed by Alexandre Julliard

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

parent dcc5b4fe
......@@ -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 */
......
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