Richard Pospesel : widl: Use type_pointer_get_default_fc() in declare_var( ).
Alexandre Julliard
julliard at winehq.org
Wed Aug 14 20:17:22 CDT 2019
Module: wine
Branch: master
Commit: ebac6a6ac442d00cb63ce1753eabd9befbe7e683
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ebac6a6ac442d00cb63ce1753eabd9befbe7e683
Author: Richard Pospesel <richard at torproject.org>
Date: Tue Aug 13 21:08:05 2019 -0500
widl: Use type_pointer_get_default_fc() in declare_var().
Signed-off-by: Richard Pospesel <richard at torproject.org>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/widl/parser.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index ff6ed1f..d45e682 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1559,7 +1559,7 @@ static var_t *declare_var(attr_list_t *attrs, decl_spec_t *decl_spec, const decl
warning_loc_info(&v->loc_info,
"%s: pointer attribute applied to interface "
"pointer type has no effect\n", v->name);
- if (!ptr_attr && top && (*pt)->details.pointer.def_fc != FC_RP)
+ if (!ptr_attr && top && type_pointer_get_default_fc(*pt) != FC_RP)
{
/* FIXME: this is a horrible hack to cope with the issue that we
* store an offset to the typeformat string in the type object, but
More information about the wine-cvs
mailing list