mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 15:52:11 +00:00
widl: Check that the structure has been defined in check_remoting_args.
This commit is contained in:
parent
fb224429f7
commit
037fa861ab
|
@ -2611,7 +2611,12 @@ static void check_remoting_fields(const var_t *var, type_t *type)
|
||||||
type->checked = TRUE;
|
type->checked = TRUE;
|
||||||
|
|
||||||
if (is_struct(type->type))
|
if (is_struct(type->type))
|
||||||
|
{
|
||||||
|
if (type->defined)
|
||||||
fields = type->fields_or_args;
|
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))
|
else if (is_union(type->type))
|
||||||
{
|
{
|
||||||
if (type->type == RPC_FC_ENCAPSULATED_UNION)
|
if (type->type == RPC_FC_ENCAPSULATED_UNION)
|
||||||
|
|
Loading…
Reference in a new issue