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:
Eric Kohl 2006-03-18 14:33:39 +01:00 committed by Alexandre Julliard
parent 919d14c577
commit c7174f9fff
2 changed files with 4 additions and 0 deletions

View File

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

View File

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