Commit f64832fe authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

rpcrt4: Support VT_BSTR in get_param_pointer_info.

Fixes a leak in typelib marshaller. Based on patch by Kevin Puetz. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f021fd4c
...@@ -925,6 +925,12 @@ static HRESULT get_param_pointer_info(ITypeInfo *typeinfo, TYPEDESC *tdesc, int ...@@ -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;
......
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