From 4050c5f035cb63ebcfababd8e285568464d812c1 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 19 Jun 2007 12:11:05 +0100 Subject: [PATCH] widl: Always write out pointers if the structure is a pointer structure. Pointer are optional for conformant varying structures. --- tools/widl/typegen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 300a88124a5..823f6e51d42 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -1624,7 +1624,9 @@ static size_t write_struct_tfs(FILE *file, type_t *type, print_file(file, 2, "NdrFcShort(0x0),\t/* FIXME: pointer stuff */\n"); *tfsoff += 2; } - else if (has_pointers) + else if ((type->type == RPC_FC_PSTRUCT) || + (type->type == RPC_FC_CPSTRUCT) || + (type->type == RPC_FC_CVSTRUCT && has_pointers)) { print_file(file, 2, "0x%x, /* FC_PP */\n", RPC_FC_PP); print_file(file, 2, "0x%x, /* FC_PAD */\n", RPC_FC_PAD);