Commit 5ca38675 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Set current_structure when writing out structure members to

ensure the conformance/variance calculation function can find the necessary fields in the structures.
parent 36fd85f4
......@@ -1279,7 +1279,9 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
}
/* member layout */
current_structure = type;
write_struct_members(file, type, typestring_offset);
current_structure = NULL;
return start_offset;
case RPC_FC_CSTRUCT:
case RPC_FC_CPSTRUCT:
......@@ -1403,7 +1405,9 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
print_file(file, 2, "NdrFcShort(0x0),\t/* FIXME: pointer stuff */\n");
*typestring_offset += 8;
current_structure = type;
write_struct_members(file, type, typestring_offset);
current_structure = NULL;
return start_offset;
......
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