stevemk14ebr / PolyHook

x86/x64 C++ Hooking Library
MIT License
886 stars 172 forks source link

Runtime error #29

Closed richard-adlava closed 6 years ago

richard-adlava commented 6 years ago

I'm getting a post error: PolyHook x64Detour: Relocation can be out of range

unsure what would cause this or what it means, could you please clarify? image

stevemk14ebr commented 6 years ago

This is a warning that is printed always no matter which function is detoured. There is an unhandled cases where hooking will fail if the function you are hooking is more than 2gb away from the allocated trampoline. From your screen shot that function is fine and will have no issue