From 2d2be52f297f5a2bbe98fefd32b43fd2571ad216 Mon Sep 17 00:00:00 2001 From: jfrijters Date: Thu, 18 Oct 2007 13:57:05 +0000 Subject: [PATCH] Don't add resources in core assembly twice (happened if a .NET assembly explicitly referenced the core assembly). --- runtime/ClassLoaderWrapper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/ClassLoaderWrapper.cs b/runtime/ClassLoaderWrapper.cs index 22498a4b..f109e1a8 100644 --- a/runtime/ClassLoaderWrapper.cs +++ b/runtime/ClassLoaderWrapper.cs @@ -1566,7 +1566,10 @@ namespace IKVM.Internal { list = new ArrayList(); } - list.Add(asm); + if(!list.Contains(asm)) + { + list.Add(asm); + } } } if(list == null)