Zebediah Figura : widl: Only mark simple [out] pointers as on-stack if they are [ref] pointers.

Alexandre Julliard julliard at winehq.org
Thu Nov 1 16:33:52 CDT 2018


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Oct 30 18:23:21 2018 -0500

widl: Only mark simple [out] pointers as on-stack if they are [ref] pointers.

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

---

 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 0301024..9cee15b 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -2145,7 +2145,7 @@ static unsigned int write_simple_pointer(FILE *file, const attr_list_t *attrs,
     else
         fc = get_basic_fc(ref);
 
-    if (out_attr && !in_attr)
+    if (out_attr && !in_attr && pointer_fc == FC_RP)
         flags |= FC_ALLOCED_ON_STACK;
 
     print_file(file, 2, "0x%02x, 0x%x,\t/* %s %s[simple_pointer] */\n",




More information about the wine-cvs mailing list