Explorar el Código

2005-01-18 Zoltan Varga <[email protected]>

	* reflection.c (mono_method_body_get_object): Handle abstract and
	runtime methods.

svn path=/trunk/mono/; revision=39109
Zoltan Varga hace 21 años
padre
commit
89eedcd4ac
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 4 0
      mono/metadata/ChangeLog
  2. 3 1
      mono/metadata/reflection.c

+ 4 - 0
mono/metadata/ChangeLog

@@ -1,3 +1,7 @@
+2005-01-18  Zoltan Varga  <[email protected]>
+
+	* reflection.c (mono_method_body_get_object): Handle abstract and
+	runtime methods.
 
 Mon Jan 17 19:22:39 CET 2005 Paolo Molaro <[email protected]>
 

+ 3 - 1
mono/metadata/reflection.c

@@ -5576,7 +5576,9 @@ mono_method_body_get_object (MonoDomain *domain, MonoMethod *method)
 	CHECK_OBJECT (MonoReflectionMethodBody *, method, NULL);
 
 	if ((method->flags & METHOD_ATTRIBUTE_PINVOKE_IMPL) ||
-	    (method->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL))
+		(method->flags & METHOD_ATTRIBUTE_ABSTRACT) ||
+	    (method->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL) ||
+	    (method->iflags & METHOD_IMPL_ATTRIBUTE_RUNTIME))
 		return NULL;
 	mn = (MonoMethodNormal *)method;
 	header = mono_method_get_header (method);