Zebediah Figura : widl: Mark unions, user types, and ranges as IsSimpleRef.

Alexandre Julliard julliard at winehq.org
Fri Jun 14 16:52:16 CDT 2019


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jun 13 17:49:34 2019 -0500

widl: Mark unions, user types, and ranges as IsSimpleRef.

This fixes a regression introduced by 02976b655a5d9ad8ee25dbfb2051acb5b7431381.
That patch should only have affected arrays.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/widl/typegen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index f320f57..fbc9f3c 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1064,7 +1064,8 @@ static unsigned char get_parameter_fc( const var_t *var, int is_return, unsigned
             case TGT_UNION:
             case TGT_USER_TYPE:
             case TGT_RANGE:
-                *flags |= MustFree;
+                *flags |= MustFree | IsSimpleRef;
+                *typestring_offset = ref->typestring_offset;
                 if (!is_in && is_out) server_size = type_memsize( ref );
                 break;
             case TGT_ARRAY:




More information about the wine-cvs mailing list