Author: zoltan
Date: 2005-04-28 08:48:13 -0400 (Thu, 28 Apr 2005)
New Revision: 43717
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/icall.c
Log:
2005-04-28 Zoltan Varga <[EMAIL PROTECTED]>
* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal): Fix
this for dynamic modules.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-04-28 12:18:44 UTC (rev 43716)
+++ trunk/mono/mono/metadata/ChangeLog 2005-04-28 12:48:13 UTC (rev 43717)
@@ -1,3 +1,8 @@
+2005-04-28 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal): Fix
+ this for dynamic modules.
+
2005-04-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* threads.c: don't wait for threads that are in the process of aborting
Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c 2005-04-28 12:18:44 UTC (rev 43716)
+++ trunk/mono/mono/metadata/icall.c 2005-04-28 12:48:13 UTC (rev 43717)
@@ -3786,9 +3786,11 @@
real_module_count = module_count;
modules = g_new0 (MonoImage*, module_count);
- for (i = 0; i < mono_array_length (assemblyb->modules); ++i) {
- modules [i] =
- mono_array_get (assemblyb->modules,
MonoReflectionModuleBuilder*, i)->module.image;
+ if (assemblyb->modules) {
+ for (i = 0; i < mono_array_length (assemblyb->modules);
++i) {
+ modules [i] =
+ mono_array_get (assemblyb->modules,
MonoReflectionModuleBuilder*, i)->module.image;
+ }
}
}
else {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches