From 5ca386755efca53f47cbb97c60d85b355d31e552 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 30 May 2007 22:43:34 +0100 Subject: [PATCH] widl: Set current_structure when writing out structure members to ensure the conformance/variance calculation function can find the necessary fields in the structures. --- tools/widl/typegen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 3af2524939a..dbbabbc49d2 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -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; -- 2.11.4.GIT