rpcrt4: Support VT_BSTR in get_param_pointer_info.
Fixes a leak in typelib marshaller. Based on patch by Kevin Puetz. Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f021fd4ce6
commit
f64832fe6a
|
@ -925,6 +925,12 @@ static HRESULT get_param_pointer_info(ITypeInfo *typeinfo, TYPEDESC *tdesc, int
|
||||||
ITypeInfo_ReleaseTypeAttr(refinfo, attr);
|
ITypeInfo_ReleaseTypeAttr(refinfo, attr);
|
||||||
ITypeInfo_Release(refinfo);
|
ITypeInfo_Release(refinfo);
|
||||||
break;
|
break;
|
||||||
|
case VT_BSTR:
|
||||||
|
*flags |= IsSimpleRef | MustFree;
|
||||||
|
*tfs_tdesc = tdesc;
|
||||||
|
if (!is_in && is_out)
|
||||||
|
*server_size = sizeof(void *);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
*flags |= IsSimpleRef;
|
*flags |= IsSimpleRef;
|
||||||
*tfs_tdesc = tdesc;
|
*tfs_tdesc = tdesc;
|
||||||
|
|
Loading…
Reference in New Issue