widl [2/5]: Set typelib_idx for coclasses

Dan Hipschman dsh at linux.ucla.edu
Fri Jul 28 15:43:43 CDT 2006


This is necessary for all typeinfos so we know whehter they've been added
to the typelib yet and so we can find their offsets if they have.
Previously, this wasn't set for coclasses, possibly because class_t didn't
have this field.  However, it is set for all other typeinfos (which are
represented as type_t).  Representing coclasses with type_t makes it
possible to do this.

ChangeLog:
* Set typelib_idx for coclasses when they're added to a typelib
---
 tools/widl/write_msft.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 002c504..4382e52 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -2063,6 +2063,7 @@ static void add_coclass_typeinfo(msft_ty
     int have_default = 0, have_default_source = 0;
     const attr_t *attr;
 
+    cls->typelib_idx = typelib->typelib_header.nrtypeinfos;
     msft_typeinfo = create_msft_typeinfo(typelib, TKIND_COCLASS, cls->name, cls->attrs,
                                          typelib->typelib_header.nrtypeinfos);
 



More information about the wine-patches mailing list