*conv = MONO_MARSHAL_CONV_STR_TBSTR;
return MONO_NATIVE_TBSTR;
case MONO_NATIVE_UTF8STR:
- *conv = MONO_MARSHAL_CONV_STR_LPTSTR;
+ *conv = MONO_MARSHAL_CONV_STR_UTF8STR;
return MONO_NATIVE_UTF8STR;
case MONO_NATIVE_BYVALTSTR:
if (unicode)
return event;
gtd = mono_class_get_generic_class (event->parent)->container_class;
- offset = event - event->parent->ext->events;
- return gtd->ext->events + offset;
+ offset = event - mono_class_get_ext (event->parent)->events;
+ return mono_class_get_ext (gtd)->events + offset;
}
/*
return property;
gtd = mono_class_get_generic_class (property->parent)->container_class;
- offset = property - property->parent->ext->properties;
- return gtd->ext->properties + offset;
+ offset = property - mono_class_get_ext (property->parent)->properties;
+ return mono_class_get_ext (gtd)->properties + offset;
}
MonoWrapperCaches*