Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 8ee804b1c9cc92fd7bea45adb1270f3d5bbcbdf5 1 parent 9e3370d
Zoltan Varga vargaz authored
Showing with 10 additions and 0 deletions.
  1. +5 −0 mono/metadata/ChangeLog
  2. +5 −0 mono/metadata/reflection.c
5 mono/metadata/ChangeLog
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,
5 mono/metadata/reflection.c
View
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.