Commit a67c37f8 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

widl: Declare fixed-size array args as pointers to arrays.

parent cc09b0c1
......@@ -416,6 +416,8 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
LIST_FOR_EACH_ENTRY( arg, cur->args, const var_t, entry )
{
fprintf(proxy, ", ");
if (arg->array)
fprintf(proxy, "*");
write_name(proxy, arg);
}
}
......
......@@ -211,6 +211,8 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
else
fprintf(server, ",\n");
print_server("");
if (var->array)
fprintf(server, "*");
write_name(server, var);
}
fprintf(server, ");\n");
......
......@@ -2302,7 +2302,12 @@ void declare_stub_args( FILE *file, int indent, const func_t *func )
print_file(file, indent, "");
write_type(file, var->type, var, var->tname);
fprintf(file, " ");
write_name(file, var);
if (var->array) {
fprintf(file, "( *");
write_name(file, var);
fprintf(file, " )");
} else
write_name(file, var);
write_array(file, var->array, 0);
fprintf(file, ";\n");
}
......
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