[PATCH] widl: Fix -Oicf marshalling of pointers to arrays.

Zebediah Figura z.figura12 at gmail.com
Wed Oct 10 16:19:23 CDT 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 tools/widl/typegen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 5b498bf..0301024 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1057,13 +1057,13 @@ static unsigned char get_parameter_fc( const var_t *var, int is_return, unsigned
             case TGT_UNION:
             case TGT_USER_TYPE:
             case TGT_RANGE:
+            case TGT_ARRAY:
                 *flags |= IsSimpleRef | MustFree;
                 *typestring_offset = ref->typestring_offset;
                 if (!is_in && is_out) server_size = type_memsize( ref );
                 break;
             case TGT_STRING:
             case TGT_POINTER:
-            case TGT_ARRAY:
             case TGT_CTXT_HANDLE:
             case TGT_CTXT_HANDLE_POINTER:
                 *flags |= MustFree;
-- 
2.7.4




More information about the wine-devel mailing list