From: Elizabeth Figura zfigura@codeweavers.com
--- tools/widl/typegen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 0777de77bf0..4401767c9f3 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -2382,7 +2382,7 @@ static unsigned int write_nonsimple_pointer(FILE *file, const attr_list_t *attrs
if (!is_interpreted_func(current_iface, current_func)) { - if (out_attr && !in_attr && pointer_type == FC_RP) + if (context == TYPE_CONTEXT_TOPLEVELPARAM && out_attr && !in_attr && pointer_type == FC_RP) flags |= FC_ALLOCED_ON_STACK; } else @@ -2466,7 +2466,7 @@ static unsigned int write_simple_pointer(FILE *file, const attr_list_t *attrs,
if (!is_interpreted_func(current_iface, current_func)) { - if (out_attr && !in_attr && pointer_fc == FC_RP) + if (context == TYPE_CONTEXT_TOPLEVELPARAM && out_attr && !in_attr && pointer_fc == FC_RP) flags |= FC_ALLOCED_ON_STACK; } else