mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
widl: Generate correct proc format strings for [out] and [in, out] parameters.
This commit is contained in:
parent
e59dcf53fc
commit
73a25d316d
1 changed files with 8 additions and 0 deletions
|
@ -96,10 +96,18 @@ static size_t write_procformatstring_var(FILE *file, int indent, var_t *var, int
|
|||
}
|
||||
else
|
||||
{
|
||||
int in_attr = is_attr(var->attrs, ATTR_IN);
|
||||
int out_attr = is_attr(var->attrs, ATTR_OUT);
|
||||
|
||||
if (is_return)
|
||||
print_file(file, indent, "0x52, /* FC_RETURN_PARAM */\n");
|
||||
else if (in_attr && out_attr)
|
||||
print_file(file, indent, "0x50, /* FC_IN_OUT_PARAM */\n");
|
||||
else if (out_attr)
|
||||
print_file(file, indent, "0x51, /* FC_OUT_PARAM */\n");
|
||||
else
|
||||
print_file(file, indent, "0x4d, /* FC_IN_PARAM */\n");
|
||||
|
||||
print_file(file, indent, "0x01,\n");
|
||||
print_file(file, indent, "NdrFcShort(0x%x),\n", *type_offset);
|
||||
size = 4; /* includes param type prefix */
|
||||
|
|
Loading…
Reference in a new issue