Dan Hipschman : widl: Set typelib_idx for coclasses when they' re added to a typelib.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Jul 29 05:22:18 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 90cdff9b3fbe0380cf38effb714376b26041359f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=90cdff9b3fbe0380cf38effb714376b26041359f

Author: Dan Hipschman <dsh at linux.ucla.edu>
Date:   Fri Jul 28 13:43:43 2006 -0700

widl: 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 f712f4e..d2a49e9 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -2070,6 +2070,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-cvs mailing list