Commit da3b5129 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole2disp: Implement SafeArrayDestroyData().

Based on patch by Vijay Kiran Kamuju. Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6b2675dc
......@@ -270,6 +270,25 @@ HRESULT WINAPI SafeArrayDestroyDescriptor16(SEGPTR s)
return S_OK;
}
/******************************************************************************
* SafeArrayDestroyData [OLE2DISP.41]
*/
HRESULT WINAPI SafeArrayDestroyData16(SAFEARRAY16 *sa)
{
TRACE("%p\n", sa);
if (!sa)
return S_OK;
if (sa->cLocks)
return DISP_E_ARRAYISLOCKED;
if (!(sa->fFeatures & FADF_STATIC))
safearray_free(sa->pvData);
return S_OK;
}
/* This implementation of the BSTR API is 16-bit only. It
represents BSTR as a 16:16 far pointer, and the strings
as ISO-8859 */
......
......@@ -38,7 +38,7 @@
38 pascal SafeArrayAllocDescriptor(word ptr) SafeArrayAllocDescriptor16
39 pascal SafeArrayAllocData(ptr) SafeArrayAllocData16
40 pascal SafeArrayDestroyDescriptor(segptr) SafeArrayDestroyDescriptor16
41 stub SAFEARRAYDESTROYDATA
41 pascal SafeArrayDestroyData(ptr) SafeArrayDestroyData16
42 stub SAFEARRAYREDIM
43 stub VARI2FROMI4
44 stub VARI2FROMR4
......
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