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>
stable
Jacek Caban 2019-12-19 14:07:57 +01:00 committed by Alexandre Julliard
parent f021fd4ce6
commit f64832fe6a
1 changed files with 6 additions and 0 deletions

View File

@ -925,6 +925,12 @@ static HRESULT get_param_pointer_info(ITypeInfo *typeinfo, TYPEDESC *tdesc, int
ITypeInfo_ReleaseTypeAttr(refinfo, attr);
ITypeInfo_Release(refinfo);
break;
case VT_BSTR:
*flags |= IsSimpleRef | MustFree;
*tfs_tdesc = tdesc;
if (!is_in && is_out)
*server_size = sizeof(void *);
break;
default:
*flags |= IsSimpleRef;
*tfs_tdesc = tdesc;