widl: Fix proc offset calculation.
A void return type is represented by a FC_END/FC_PAD sequence in the proc format string. Increment the proc offset by two when a function returns void.
This commit is contained in:
parent
919d14c577
commit
c7174f9fff
|
@ -252,6 +252,8 @@ static void write_function_stubs(type_t *iface)
|
|||
}
|
||||
if (!is_void(def->type, NULL))
|
||||
proc_offset += get_size_procformatstring_var(def);
|
||||
else
|
||||
proc_offset += 2; /* FC_END and FC_PAD */
|
||||
|
||||
indent--;
|
||||
print_client("}\n");
|
||||
|
|
|
@ -343,6 +343,8 @@ static void write_function_stubs(type_t *iface)
|
|||
}
|
||||
if (!is_void(def->type, NULL))
|
||||
proc_offset += get_size_procformatstring_var(def);
|
||||
else
|
||||
proc_offset += 2; /* FC_END and FC_PAD */
|
||||
|
||||
func = PREV_LINK(func);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue