1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-05 09:18:56 +00:00

widl: Check that the structure has been defined in check_remoting_args.

This commit is contained in:
Rob Shearman 2008-07-02 00:01:42 +01:00 committed by Alexandre Julliard
parent fb224429f7
commit 037fa861ab

View File

@ -2611,7 +2611,12 @@ static void check_remoting_fields(const var_t *var, type_t *type)
type->checked = TRUE;
if (is_struct(type->type))
fields = type->fields_or_args;
{
if (type->defined)
fields = type->fields_or_args;
else
error_loc_info(&var->loc_info, "undefined type declaration %s\n", type->name);
}
else if (is_union(type->type))
{
if (type->type == RPC_FC_ENCAPSULATED_UNION)