summaryrefslogtreecommitdiff
path: root/src/plugins/HookSystem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/HookSystem.hpp')
-rw-r--r--src/plugins/HookSystem.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/HookSystem.hpp b/src/plugins/HookSystem.hpp
index 95b4c972..cf098dd1 100644
--- a/src/plugins/HookSystem.hpp
+++ b/src/plugins/HookSystem.hpp
@@ -6,7 +6,7 @@
#include "../helpers/memory/Memory.hpp"
#define HANDLE void*
-#define HOOK_TRAMPOLINE_MAX_SIZE 64
+#define HOOK_TRAMPOLINE_MAX_SIZE 32
class CFunctionHook {
public:
@@ -24,13 +24,13 @@ class CFunctionHook {
void* m_original = nullptr;
private:
- void* m_source = nullptr;
- void* m_trampolineAddr = nullptr;
- void* m_destination = nullptr;
- size_t m_hookLen = 0;
- size_t m_trampoLen = 0;
- HANDLE m_owner = nullptr;
- bool m_active = false;
+ void* m_source = nullptr;
+ void* m_launchTrampolineAddr = nullptr;
+ void* m_landTrampolineAddr = nullptr;
+ void* m_destination = nullptr;
+ size_t m_hookLen = 0;
+ HANDLE m_owner = nullptr;
+ bool m_active = false;
std::vector<unsigned char> m_originalBytes;