Author: gnorton
Date: 2007-06-20 12:49:12 -0400 (Wed, 20 Jun 2007)
New Revision: 80336

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/icall.c
Log:
2007-06-20  Geoff Norton  <[EMAIL PROTECTED]>

        * icall.c: The second argument to
        System.Reflection.MethodBase.GetMethodFromHandleInternalType
        is a MonoType not a MonoClass.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-06-20 16:26:15 UTC (rev 80335)
+++ trunk/mono/mono/metadata/ChangeLog  2007-06-20 16:49:12 UTC (rev 80336)
@@ -1,3 +1,9 @@
+2007-06-20  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * icall.c: The second argument to 
+       System.Reflection.MethodBase.GetMethodFromHandleInternalType
+       is a MonoType not a MonoClass.
+
 2007-06-20  Rodrigo Kumpera  <[EMAIL PROTECTED]>
 
        * verify.c: support for function pointers in the verifier

Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c    2007-06-20 16:26:15 UTC (rev 80335)
+++ trunk/mono/mono/metadata/icall.c    2007-06-20 16:49:12 UTC (rev 80336)
@@ -4381,10 +4381,13 @@
 }
 
 static MonoReflectionMethod*
-ves_icall_System_Reflection_MethodBase_GetMethodFromHandleInternalType 
(MonoMethod *method, MonoClass *klass)
+ves_icall_System_Reflection_MethodBase_GetMethodFromHandleInternalType 
(MonoMethod *method, MonoType *type)
 {
        /* FIXME check that method belongs to klass or a parent */
-       if (!klass)
+       MonoClass *klass;
+       if (type)
+               klass = mono_class_from_mono_type (type);
+       else
                klass = method->klass;
        return mono_method_get_object (mono_domain_get (), method, klass);
 }

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

Reply via email to