From 5834a258d0ffe8eb63d9c67d0d6c8ec1caa2ed69 Mon Sep 17 00:00:00 2001 From: Tashcan Date: Wed, 27 Nov 2024 16:44:33 -0800 Subject: [PATCH] Add missing variable --- src/detour/aarch64/aarch64.cc | 2 ++ 1 file changed, 2 insertions(+) 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);