Jacek Caban : rpcrt4: Support VT_BSTR in get_param_pointer_info.

Alexandre Julliard julliard at winehq.org
Thu Dec 19 16:00:05 CST 2019


Module: wine
Branch: master
Commit: f64832fe6a4bb330d42f44b51cd5addb1f521291
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f64832fe6a4bb330d42f44b51cd5addb1f521291

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Dec 19 14:07:57 2019 +0100

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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rpcrt4/ndr_typelib.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/rpcrt4/ndr_typelib.c b/dlls/rpcrt4/ndr_typelib.c
index cb5e4f17df..7cb7da18ad 100644
--- a/dlls/rpcrt4/ndr_typelib.c
+++ b/dlls/rpcrt4/ndr_typelib.c
@@ -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;




More information about the wine-cvs mailing list