Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Runtime/VTables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public T GetMethodDelegate<T>(short table, int slot, short specialiation = 0) wh
public unsafe static IntPtr* CloneTable(List<SafeUnmanagedMemoryHandle> cache, IntPtr instance, int offset, int size, int offsetRTTI)
{
var sizeInBytes = (size + offsetRTTI) * sizeof(IntPtr);
var src = (((*(IntPtr*)instance) + offset) - offsetRTTI * sizeof(IntPtr)).ToPointer();
var src = (*(IntPtr**)(instance + offset) - offsetRTTI);
var entries = (IntPtr*)Marshal.AllocHGlobal(sizeInBytes);

Buffer.MemoryCopy(src, entries, sizeInBytes, sizeInBytes);
Expand Down