Commit bb313c9d authored by Walt Ogburn's avatar Walt Ogburn Committed by Alexandre Julliard

SafeArrayDestroyData - keep pointer, don't destroy data if FADF_STATIC

is set.
parent 5d5f5230
......@@ -1254,7 +1254,8 @@ HRESULT WINAPI SafeArrayDestroyData(SAFEARRAY *psa)
if (psa->cLocks)
return DISP_E_ARRAYISLOCKED; /* Can't delete a locked array */
if (psa->pvData)
/* If static, keep pvData and don't free */
if (psa->pvData && !(psa->fFeatures & FADF_STATIC))
{
/* Delete the actual item data */
if (FAILED(SAFEARRAY_DestroyData(psa, 0)))
......
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