oleaut32: Handle non-byref safe arrays in VARIANT_UserFree.
This commit is contained in:
parent
2779099319
commit
6539b3801d
|
@ -661,7 +661,12 @@ void WINAPI VARIANT_UserFree(ULONG *pFlags, VARIANT *pvar)
|
|||
if (!ref) return;
|
||||
|
||||
if(vt & VT_ARRAY)
|
||||
{
|
||||
if (vt & VT_BYREF)
|
||||
LPSAFEARRAY_UserFree(pFlags, V_ARRAYREF(pvar));
|
||||
else
|
||||
LPSAFEARRAY_UserFree(pFlags, &V_ARRAY(pvar));
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (vt)
|
||||
|
|
Loading…
Reference in New Issue