* marshal.c (mono_class_native_size): Always set *align even if this is called
recursively.
svn path=/trunk/mono/; revision=92551
+2008-01-10 Zoltan Varga <vargaz@gmail.com>
+
+ * marshal.c (mono_class_native_size): Always set *align even if this is called
+ recursively.
+
2008-01-09 Zoltan Varga <vargaz@gmail.com>
* verify.c (mono_verify_corlib): Remove this as it was not used and was
native_size += parent_size;
info->native_size = parent_size;
}
-
+
iter = NULL;
j = 0;
while ((field = mono_class_get_fields (klass, &iter))) {
mono_class_native_size (MonoClass *klass, guint32 *align)
{
if (!klass->marshal_info) {
- if (mono_marshal_is_loading_type_info (klass))
+ if (mono_marshal_is_loading_type_info (klass)) {
+ if (align)
+ *align = 0;
return 0;
- else
+ } else {
mono_marshal_load_type_info (klass);
+ }
}
if (align)