Browse Source

Base derived type's initial gchandle delta off primary base's

pull/1/head
Alexander Corrado 14 years ago
parent
commit
6cdba21cf6
  1. 2
      src/Mono.Cxxi/CppTypeInfo.cs

2
src/Mono.Cxxi/CppTypeInfo.cs

@ -198,6 +198,8 @@ namespace Mono.Cxxi { @@ -198,6 +198,8 @@ namespace Mono.Cxxi {
baseType.gchandle_offset_delta += native_size_without_padding + CountBases (b => !b.IsPrimaryBase) * IntPtr.Size;
baseType.vt_overrides = baseType.vt_overrides.Clone (); // managed override tramps will be regenerated with correct gchandle offset
} else {
gchandle_offset_delta = baseType.gchandle_offset_delta;
}
base_classes.Add (baseType);

Loading…
Cancel
Save