diff --git a/src/detour/aarch64/aarch64.cc b/src/detour/aarch64/aarch64.cc index 40aa981..a5d69de 100644 --- a/src/detour/aarch64/aarch64.cc +++ b/src/detour/aarch64/aarch64.cc @@ -160,8 +160,10 @@ std::tuple collect_relocations(uintptr_t address, MEMORY_BASIC_INFORMATION memory_info; VirtualQuery(address, &memory_info, sizeof(memory_info)); size_t vmsize = im.RegionSize; + uintptr_t addr = im.BaseAddress; #else size_t vmsize = 0xFF; + uintptr_t addr =address; #endif // SPUD_OS_APPLE cs_open(CS_ARCH_AARCH64, CS_MODE_LITTLE_ENDIAN, &handle);