Author: lupus
Date: 2007-02-23 09:06:41 -0500 (Fri, 23 Feb 2007)
New Revision: 73362

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/loader.c
Log:


Fri Feb 23 15:06:57 CET 2007 Paolo Molaro <[EMAIL PROTECTED]>

        * loader.c: allow case-insensitive matching of the dll name
        in dllmap handling when prefixed with "i:".



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-02-23 13:27:32 UTC (rev 73361)
+++ trunk/mono/mono/metadata/ChangeLog  2007-02-23 14:06:41 UTC (rev 73362)
@@ -1,3 +1,9 @@
+
+Fri Feb 23 15:06:57 CET 2007 Paolo Molaro <[EMAIL PROTECTED]>
+
+       * loader.c: allow case-insensitive matching of the dll name
+       in dllmap handling when prefixed with "i:".
+
 2007-02-20  Jonathan Chambers  <[EMAIL PROTECTED]>
 
        * threads.c: Fix #ifdef for dummy_apc function for VS.

Modified: trunk/mono/mono/metadata/loader.c
===================================================================
--- trunk/mono/mono/metadata/loader.c   2007-02-23 13:27:32 UTC (rev 73361)
+++ trunk/mono/mono/metadata/loader.c   2007-02-23 14:06:41 UTC (rev 73362)
@@ -952,8 +952,12 @@
         * later entries win.
         */
        for (; dll_map; dll_map = dll_map->next) {
-               if (strcmp (dll_map->dll, dll))
+               if (dll_map->dll [0] == 'i' && dll_map->dll [1] == ':') {
+                       if (g_ascii_strcasecmp (dll_map->dll + 2, dll))
+                               continue;
+               } else if (strcmp (dll_map->dll, dll)) {
                        continue;
+               }
                if (!found && dll_map->target) {
                        *rdll = dll_map->target;
                        found = 1;

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

Reply via email to