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:
parent
f198dcf09b
commit
36fd85f4cc
|
@ -337,16 +337,16 @@ static size_t write_procformatstring_var(FILE *file, int indent,
|
||||||
else
|
else
|
||||||
print_file(file, indent, "0x4e, /* FC_IN_PARAM_BASETYPE */\n");
|
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));
|
|
||||||
size = 2; /* includes param type prefix */
|
|
||||||
}
|
|
||||||
else if (type->type == RPC_FC_BIND_PRIMITIVE)
|
|
||||||
{
|
{
|
||||||
print_file(file, indent, "0x%02x, /* FC_IGNORE */\n", RPC_FC_IGNORE);
|
print_file(file, indent, "0x%02x, /* FC_IGNORE */\n", RPC_FC_IGNORE);
|
||||||
size = 2; /* includes param type prefix */
|
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
|
else
|
||||||
{
|
{
|
||||||
error("Unknown/unsupported type: %s (0x%02x)\n", var->name, type->type);
|
error("Unknown/unsupported type: %s (0x%02x)\n", var->name, type->type);
|
||||||
|
|
Loading…
Reference in New Issue