widl: Set current_structure when writing out structure members to

ensure the conformance/variance calculation function can find the
necessary fields in the structures.
This commit is contained in:
Rob Shearman 2007-05-30 22:43:34 +01:00 committed by Alexandre Julliard
parent 36fd85f4cc
commit 5ca386755e

View File

@ -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;