Skip to content

Commit

Permalink
Use POLYHOOK2_ARCH_X64 for _PTR_MAX_VALUE (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackedMatter authored May 10, 2024
1 parent 99e061c commit 4f3fea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyhook2/Misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static inline FinalAction<F> finally(F f) {

//Credit to Dogmatt on unknowncheats.me for IsValidPtr
// and https://docs.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/virtual-address-spaces
#ifdef _WIN64
#ifdef POLYHOOK2_ARCH_X64
#define _PTR_MAX_VALUE ((void*)0x000F000000000000)
#else
#define _PTR_MAX_VALUE ((void*)0xFFF00000)
Expand Down

0 comments on commit 4f3fea7

Please sign in to comment.