diff --git a/dlls/oleaut32/safearray.c b/dlls/oleaut32/safearray.c index 8da2d763886..be309f6bf51 100644 --- a/dlls/oleaut32/safearray.c +++ b/dlls/oleaut32/safearray.c @@ -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 */