bizinvoker: fix clas being used in place of ref struct
This commit is contained in:
parent
2665510502
commit
34791d8589
|
@ -482,6 +482,10 @@ namespace BizHawk.Common.BizInvoke
|
|||
il.Emit(OpCodes.Dup);
|
||||
il.Emit(OpCodes.Stloc, loc);
|
||||
il.Emit(OpCodes.Conv_I);
|
||||
// skip past the methodtable pointer to the first field
|
||||
il.Emit(IntPtr.Size == 4 ? OpCodes.Ldc_I4_4 : OpCodes.Ldc_I4_8);
|
||||
il.Emit(OpCodes.Conv_I);
|
||||
il.Emit(OpCodes.Add);
|
||||
|
||||
return typeof(IntPtr);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 849eeee8c8dc9c8dc0283720a091377eb92ee3a8
|
||||
Subproject commit 33c4a7ce3760cad10f2ed132d73d8197fc845061
|
Loading…
Reference in New Issue