[PATCH 1/2] widl: Mark unions, user types, and ranges as IsSimpleRef.

Zebediah Figura z.figura12 at gmail.com
Thu Jun 13 17:49:34 CDT 2019


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

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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 f320f57789a..fbc9f3cc5bd 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:
-- 
2.20.1




More information about the wine-devel mailing list