IL2CPP: Fix metadata usage detection for v27 for 32-bit binaries

This commit is contained in:
Katy Coe
2020-08-16 21:47:59 +02:00
parent 246809c0a4
commit c9bd4187c2

View File

@@ -171,7 +171,7 @@ namespace Il2CppInspector
// Scan the image looking for a sequential block of at least 'threshold' valid metadata tokens // Scan the image looking for a sequential block of at least 'threshold' valid metadata tokens
while (BinaryImage.Position < BinaryImage.Length && (usagesCount == 0 || sequenceLength > 0)) { while (BinaryImage.Position < BinaryImage.Length && (usagesCount == 0 || sequenceLength > 0)) {
var word = BinaryImage.ReadWord(); var word = BinaryImage.ReadObject<ulong>();
if (word % 2 != 1 || word >> 32 != 0) { if (word % 2 != 1 || word >> 32 != 0) {
sequenceLength = 0; sequenceLength = 0;