Commit 7e4a9852 authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Initialize local variables in stub functions.

parent 9e6acf81
......@@ -361,6 +361,10 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
print_proxy("NdrStubInitialize(_Msg, &_StubMsg, &Object_StubDesc, pRpcChannelBuffer);\n");
fprintf(proxy, "\n");
if (cur->args)
LIST_FOR_EACH_ENTRY( arg, cur->args, const var_t, entry )
print_proxy("%s = 0;\n", arg->name);
print_proxy("RpcTryFinally\n");
print_proxy("{\n");
indent++;
......
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