Author: joncham
Date: 2007-11-07 21:36:02 -0500 (Wed, 07 Nov 2007)
New Revision: 89175

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/class.c
Log:
2007-11-07  Jonathan Chambers <[EMAIL PROTECTED]>

        * class.c: Initialize COM types if COM interfaces
        are present (not just COM classes).
        
        Code is contributed under MIT/X11 license.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-11-07 23:20:26 UTC (rev 89174)
+++ trunk/mono/mono/metadata/ChangeLog  2007-11-08 02:36:02 UTC (rev 89175)
@@ -1,3 +1,10 @@
+2007-11-07  Jonathan Chambers <[EMAIL PROTECTED]>
+
+       * class.c: Initialize COM types if COM interfaces
+       are present (not just COM classes).
+       
+       Code is contributed under MIT/X11 license.
+
 2007-11-07  Massimiliano Mantione  <[EMAIL PROTECTED]>
        * reflection.c:
        create_dynamic_mono_image: hook module profiler events (dynamic case).

Modified: trunk/mono/mono/metadata/class.c
===================================================================
--- trunk/mono/mono/metadata/class.c    2007-11-07 23:20:26 UTC (rev 89174)
+++ trunk/mono/mono/metadata/class.c    2007-11-08 02:36:02 UTC (rev 89175)
@@ -3344,6 +3344,9 @@
                /*class->enumtype = class->parent->enumtype; */
                mono_class_setup_supertypes (class);
        } else {
+               /* initialize com types if COM interfaces are present */
+               if (MONO_CLASS_IS_IMPORT (class))
+                       mono_init_com_types ();
                class->parent = NULL;
        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to