Commit 5ae2b0f2 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

widl: Initialise [out] only parameters if they are user types or interface pointers.

parent 63fe5d84
......@@ -4055,12 +4055,15 @@ void assign_stub_out_args( FILE *file, int indent, const var_t *func, const char
case TGT_ENUM:
case TGT_POINTER:
case TGT_RANGE:
case TGT_IFACE_POINTER:
print_file(file, indent, "%s_W%u = 0;\n", local_var_prefix, i);
break;
case TGT_USER_TYPE:
print_file(file, indent, "memset(&%s_W%u, 0, sizeof(%s_W%u));\n",
local_var_prefix, i, local_var_prefix, i);
break;
case TGT_STRUCT:
case TGT_UNION:
case TGT_USER_TYPE:
case TGT_IFACE_POINTER:
case TGT_ARRAY:
case TGT_CTXT_HANDLE:
case TGT_CTXT_HANDLE_POINTER:
......
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