[Hooking] Fix variable typos.
This commit is contained in:
parent
b219858a52
commit
a739e3bc8d
@ -139,7 +139,7 @@ namespace Utils
|
||||
return this;
|
||||
}
|
||||
|
||||
Hook* Hook::install(bool unprotect, bool keepUnportected)
|
||||
Hook* Hook::install(bool unprotect, bool keepUnprotected)
|
||||
{
|
||||
std::lock_guard<std::mutex> _(this->stateMutex);
|
||||
|
||||
@ -159,7 +159,7 @@ namespace Utils
|
||||
|
||||
*reinterpret_cast<size_t*>(code + 1) = reinterpret_cast<size_t>(this->stub) - (reinterpret_cast<size_t>(this->place) + 5);
|
||||
|
||||
if (unprotect && !keepUnportected) VirtualProtect(this->place, sizeof(this->buffer), this->protection, &this->protection);
|
||||
if (unprotect && !keepUnprotected) VirtualProtect(this->place, sizeof(this->buffer), this->protection, &this->protection);
|
||||
|
||||
FlushInstructionCache(GetCurrentProcess(), this->place, sizeof(this->buffer));
|
||||
|
||||
|
@ -61,7 +61,7 @@ namespace Utils
|
||||
Hook* initialize(void* place, void* stub, bool useJump = true);
|
||||
Hook* initialize(DWORD place, void* stub, bool useJump = true);
|
||||
Hook* initialize(DWORD place, void(*stub)(), bool useJump = true); // For lambdas
|
||||
Hook* install(bool unprotect = true, bool keepUnportected = false);
|
||||
Hook* install(bool unprotect = true, bool keepUnprotected = false);
|
||||
Hook* uninstall(bool unprotect = true);
|
||||
|
||||
void* getAddress();
|
||||
|
Loading…
Reference in New Issue
Block a user