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