widl: Add the typedef to the type library if the aliasee is an anonymous UDT.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47050
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Richard Pospesel 2019-08-21 11:18:09 -05:00 committed by Alexandre Julliard
parent 96e11d51ba
commit 4b1dfa6037
1 changed files with 4 additions and 0 deletions

View File

@ -1895,7 +1895,11 @@ static type_t *reg_typedefs(decl_spec_t *decl_spec, declarator_list_t *decls, at
type_get_type_detect_alias(type) == TYPE_ENCAPSULATED_UNION)
{
if (!type->name)
{
type->name = gen_name();
if (!is_attr(attrs, ATTR_PUBLIC))
attrs = append_attr(attrs, make_attr(ATTR_PUBLIC));
}
/* replace existing attributes when generating a typelib */
if (do_typelib)