[Hooking] Fix variable typos.

This commit is contained in:
/dev/urandom 2017-06-02 21:34:14 +02:00
parent b219858a52
commit a739e3bc8d
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ namespace Utils
return this; return this;
} }
Hook* Hook::install(bool unprotect, bool keepUnportected) Hook* Hook::install(bool unprotect, bool keepUnprotected)
{ {
std::lock_guard<std::mutex> _(this->stateMutex); 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); *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)); FlushInstructionCache(GetCurrentProcess(), this->place, sizeof(this->buffer));

View File

@ -61,7 +61,7 @@ namespace Utils
Hook* initialize(void* place, void* stub, bool useJump = true); 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);
Hook* initialize(DWORD place, void(*stub)(), bool useJump = true); // For lambdas 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); Hook* uninstall(bool unprotect = true);
void* getAddress(); void* getAddress();