aboutsummaryrefslogtreecommitdiff
path: root/primedev/core/hooks.h
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/core/hooks.h')
-rw-r--r--primedev/core/hooks.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/primedev/core/hooks.h b/primedev/core/hooks.h
index 023b7411..26d9483c 100644
--- a/primedev/core/hooks.h
+++ b/primedev/core/hooks.h
@@ -140,7 +140,9 @@ public:
__autohook() = delete;
__autohook(__fileAutohook* autohook, const char* funcName, LPVOID absoluteAddress, LPVOID* orig, LPVOID func)
- : pHookFunc(func), ppOrigFunc(orig), iAbsoluteAddress(absoluteAddress)
+ : pHookFunc(func)
+ , ppOrigFunc(orig)
+ , iAbsoluteAddress(absoluteAddress)
{
iAddressResolutionMode = ABSOLUTE_ADDR;
@@ -152,7 +154,8 @@ public:
}
__autohook(__fileAutohook* autohook, const char* funcName, const char* addrString, LPVOID* orig, LPVOID func)
- : pHookFunc(func), ppOrigFunc(orig)
+ : pHookFunc(func)
+ , ppOrigFunc(orig)
{
iAddressResolutionMode = OFFSET_STRING;
@@ -168,7 +171,8 @@ public:
}
__autohook(__fileAutohook* autohook, const char* funcName, const char* moduleName, const char* procName, LPVOID* orig, LPVOID func)
- : pHookFunc(func), ppOrigFunc(orig)
+ : pHookFunc(func)
+ , ppOrigFunc(orig)
{
iAddressResolutionMode = PROCADDRESS;