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.
This commit is contained in:
Rob Shearman 2007-05-30 22:42:57 +01:00 committed by Alexandre Julliard
parent f198dcf09b
commit 36fd85f4cc
1 changed files with 6 additions and 6 deletions

View File

@ -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);