Module: wine Branch: stable Commit: f46d69c9bbcce48556ba62a92a10856b12132b25 URL: https://source.winehq.org/git/wine.git/?a=commit;h=f46d69c9bbcce48556ba62a92...
Author: Zebediah Figura z.figura12@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@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 0afbcee924d0a9a7461291ea389c5a78d3ed2227) Signed-off-by: Michael Stefaniuc mstefani@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 62638f8caf..a0de448193 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -1059,7 +1059,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: