Rob Shearman : widl: RPC_FC_BIND_PRIMITIVE is a base type so reverse an if statement

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 31 08:33:38 CDT 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Wed May 30 22:42:57 2007 +0100

widl: RPC_FC_BIND_PRIMITIVE is a base type so reverse an if statement
that caused string_of_type to fail and the RPC_FC_BIND_PRIMITIVE code
not to be executed.

---

 tools/widl/typegen.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index c6024e2..3af2524 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -337,14 +337,14 @@ static size_t write_procformatstring_var(FILE *file, int indent,
         else
             print_file(file, indent, "0x4e,    /* FC_IN_PARAM_BASETYPE */\n");
 
-        if (is_base_type(type->type))
+        if (type->type == RPC_FC_BIND_PRIMITIVE)
         {
-            print_file(file, indent, "0x%02x,    /* %s */\n", type->type, string_of_type(type->type));
+            print_file(file, indent, "0x%02x,    /* FC_IGNORE */\n", RPC_FC_IGNORE);
             size = 2; /* includes param type prefix */
         }
-        else if (type->type == RPC_FC_BIND_PRIMITIVE)
+        else if (is_base_type(type->type))
         {
-            print_file(file, indent, "0x%02x,    /* FC_IGNORE */\n", RPC_FC_IGNORE);
+            print_file(file, indent, "0x%02x,    /* %s */\n", type->type, string_of_type(type->type));
             size = 2; /* includes param type prefix */
         }
         else




More information about the wine-cvs mailing list