Skip to content

Commit

Permalink
Add missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tashcan committed Nov 28, 2024
1 parent c63b9d6 commit 5834a25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detour/aarch64/aarch64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ std::tuple<relocation_info, size_t> 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);
Expand Down

0 comments on commit 5834a25

Please sign in to comment.