widl: Always write out pointers if the structure is a pointer structure. Pointer are optional for conformant varying structures.

This commit is contained in:
Rob Shearman 2007-06-19 12:11:05 +01:00 committed by Alexandre Julliard
parent 4292776b83
commit 4050c5f035

View file

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