fix polyhook crash

I tried to hook a member varialbe. well shit I mean it kinda has to have a similar name, doesn't it
This commit is contained in:
2017-12-30 22:38:01 +01:00
parent 1184c88410
commit 8989abafd2
2 changed files with 9 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ private:
detTailRecursion;
template <typename T>
bool hook(std::shared_ptr<PLH::Detour> det, void* func, void*& original, void* hook) {
bool hook(std::shared_ptr<PLH::Detour> det, void* func, T& original, void* hook) {
det->SetupHook((BYTE*)func, (BYTE*)hook);
if (!det->Hook()) {
return false;