From 36fd85f4cc9090ad21f5017c0502c76d165bc7f3 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 30 May 2007 22:42:57 +0100 Subject: [PATCH] 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index c6024e25d8..3af2524939 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -337,16 +337,16 @@ 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)) - { - print_file(file, indent, "0x%02x, /* %s */\n", type->type, string_of_type(type->type)); - size = 2; /* includes param type prefix */ - } - else if (type->type == RPC_FC_BIND_PRIMITIVE) + if (type->type == RPC_FC_BIND_PRIMITIVE) { print_file(file, indent, "0x%02x, /* FC_IGNORE */\n", RPC_FC_IGNORE); size = 2; /* includes param type prefix */ } + else if (is_base_type(type->type)) + { + print_file(file, indent, "0x%02x, /* %s */\n", type->type, string_of_type(type->type)); + size = 2; /* includes param type prefix */ + } else { error("Unknown/unsupported type: %s (0x%02x)\n", var->name, type->type);