IL2CPP: Fix off-by-1 pointer error in non-PE x86/64 files (#123)

This commit is contained in:
Katy Coe
2021-01-11 19:13:09 +01:00
parent 87e6ea47e7
commit 52f477698e
2 changed files with 21 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ namespace Il2CppInspector.Reflection
ParameterTypes = exampleMethod.DeclaredParameters.Select(p => mapParameterType(model, p.ParameterType)).ToArray();
var start = Package.MethodInvokePointers[Index];
VirtualAddress = (start & 0xffff_ffff_ffff_fffe, Package.FunctionAddresses[start]);
VirtualAddress = (start, Package.FunctionAddresses[start]);
}
// The invokers use Object for all reference types, and SByte for booleans