return NULL;
}
/* allow two :: to separate the method name */
- if (method_name [-1] == ':')
+ if (method_name != class_nspace && method_name [-1] == ':')
method_name [-1] = 0;
*method_name++ = 0;
class_name = strrchr (class_nspace, '.');
gboolean
mono_method_desc_full_match (MonoMethodDesc *desc, MonoMethod *method)
{
+ if (!desc->klass)
+ return FALSE;
if (!match_class (desc, strlen (desc->klass), method->klass))
return FALSE;
size_t len2;
char *blob2 = NULL;
- if (!method->klass->image->dynamic) {
+ if (!image_is_dynamic (method->klass->image) && !method_is_dynamic (method)) {
token = read32 (ip);
blob = mono_metadata_user_string (method->klass->image, mono_metadata_token_index (token));