Permalink
Browse files

2004-12-08 Zoltan Varga <vargaz@freemail.hu>

	* reflection.c (mono_assembly_get_object): Add a workaround so __MetadataTypes won't
	be visible in other appdomains.

svn path=/trunk/mono/; revision=37355
  • Loading branch information...
1 parent 9e3370d commit 8ee804b1c9cc92fd7bea45adb1270f3d5bbcbdf5 @vargaz vargaz committed Dec 8, 2004
Showing with 10 additions and 0 deletions.
  1. +5 −0 mono/metadata/ChangeLog
  2. +5 −0 mono/metadata/reflection.c
View
@@ -1,3 +1,8 @@
+2004-12-08 Zoltan Varga <vargaz@freemail.hu>
+
+ * reflection.c (mono_assembly_get_object): Add a workaround so __MetadataTypes won't
+ be visible in other appdomains.
+
2004-12-07 Ben Maurer <bmaurer@ximian.com>
* threads.c: Interlocked inc and dec for longs were messed up,
@@ -5072,6 +5072,11 @@ mono_assembly_get_object (MonoDomain *domain, MonoAssembly *assembly)
mono_defaults.corlib, "System.Reflection", "Assembly");
res = (MonoReflectionAssembly *)mono_object_new (domain, System_Reflection_Assembly);
res->assembly = assembly;
+
+ /* FIXME: This is a workaround for 1.1.3 */
+ if (!strcmp (assembly->aname.name, "__MetadataTypes"))
+ res->corlib_internal = TRUE;
+
CACHE_OBJECT (assembly, res, NULL);
return res;
}

0 comments on commit 8ee804b

Please sign in to comment.