Rob Shearman : widl: Only classify top-level pointers as ref pointers if they don' t have any other pointer attributes.

Alexandre Julliard julliard at winehq.org
Wed Feb 25 09:22:36 CST 2009


Module: wine
Branch: master
Commit: f27261e525d5025e12f85ea3107dd938054abf4c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f27261e525d5025e12f85ea3107dd938054abf4c

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Feb 24 15:15:42 2009 +0000

widl: Only classify top-level pointers as ref pointers if they don't have any other pointer attributes.

---

 tools/widl/parser.y |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 0988efd..fb7dcaa 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1451,7 +1451,7 @@ static void set_type(var_t *v, decl_spec_t *decl_spec, const declarator_t *decl,
           warning_loc_info(&v->loc_info,
                            "%s: pointer attribute applied to interface "
                            "pointer type has no effect\n", v->name);
-      if (top)
+      if (top && !ptr_attr)
         ptr_attr = RPC_FC_RP;
       if (ptr_attr != (*pt)->type)
       {




More information about the wine-cvs mailing list