widl: Write out code for initialising out-only client context handles.

This commit is contained in:
Rob Shearman 2008-01-20 10:56:15 +00:00 committed by Alexandre Julliard
parent 6994071269
commit 5af6012fba
1 changed files with 2 additions and 0 deletions

View File

@ -2724,6 +2724,8 @@ static void write_remoting_arg(FILE *file, int indent, const func_t *func,
{ {
if (pass == PASS_OUT) if (pass == PASS_OUT)
{ {
if (!in_attr)
print_file(file, indent, "*%s = 0;\n", var->name);
print_file(file, indent, "NdrClientContextUnmarshall(\n"); print_file(file, indent, "NdrClientContextUnmarshall(\n");
print_file(file, indent + 1, "&_StubMsg,\n"); print_file(file, indent + 1, "&_StubMsg,\n");
print_file(file, indent + 1, "(NDR_CCONTEXT *)%s,\n", var->name); print_file(file, indent + 1, "(NDR_CCONTEXT *)%s,\n", var->name);