widl: Set typelib_idx for coclasses when they're added to a typelib.
This commit is contained in:
parent
c67b19b4f4
commit
90cdff9b3f
|
@ -2070,6 +2070,7 @@ static void add_coclass_typeinfo(msft_typelib_t *typelib, type_t *cls)
|
||||||
int have_default = 0, have_default_source = 0;
|
int have_default = 0, have_default_source = 0;
|
||||||
const attr_t *attr;
|
const attr_t *attr;
|
||||||
|
|
||||||
|
cls->typelib_idx = typelib->typelib_header.nrtypeinfos;
|
||||||
msft_typeinfo = create_msft_typeinfo(typelib, TKIND_COCLASS, cls->name, cls->attrs,
|
msft_typeinfo = create_msft_typeinfo(typelib, TKIND_COCLASS, cls->name, cls->attrs,
|
||||||
typelib->typelib_header.nrtypeinfos);
|
typelib->typelib_header.nrtypeinfos);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue