Commit 0ce5584a authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

widl: Don't crash on nameless structs.

parent c13e7ae4
......@@ -2225,6 +2225,9 @@ static void add_structure_typeinfo(msft_typelib_t *typelib, type_t *structure)
if (-1 < structure->typelib_idx)
return;
if (!structure->name)
structure->name = gen_name();
structure->typelib_idx = typelib->typelib_header.nrtypeinfos;
msft_typeinfo = create_msft_typeinfo(typelib, TKIND_RECORD, structure->name, structure->attrs);
msft_typeinfo->typeinfo->size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment