Commit 36fd85f4 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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.
parent f198dcf0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment