use exact address for hooking
Before I tried to hook the entry in my iat, which obviously leads to various dumb failures...
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
|
||||
#pragma comment(lib, "..\\x64\\debug\\test_cases.lib")
|
||||
|
||||
static TypeSmall trueSmall = &_small;
|
||||
static TypeBranch trueBranch = &_branch;
|
||||
static TypeRip_relative trueRip_Relative = &_rip_relative;
|
||||
static TypeAVX trueAVX = &_AVX;
|
||||
static TypeRDRAND trueRDRAND = &_RDRAND;
|
||||
static TypeLoop trueLoop = &_loop;
|
||||
static TypeTailRecursion trueTailRecursion = &_tail_recursion;
|
||||
static TypeSmall trueSmall = (TypeSmall)AbstractHookEngine::getSmall();
|
||||
static TypeBranch trueBranch = (TypeBranch)AbstractHookEngine::getBranch();
|
||||
static TypeRip_relative trueRip_Relative = (TypeRip_relative)AbstractHookEngine::getRipRelative();
|
||||
static TypeAVX trueAVX = (TypeAVX)AbstractHookEngine::getAVX();
|
||||
static TypeRDRAND trueRDRAND = (TypeRDRAND)AbstractHookEngine::getRDRAND();
|
||||
static TypeLoop trueLoop = (TypeLoop)AbstractHookEngine::getLoop();
|
||||
static TypeTailRecursion trueTailRecursion = (TypeTailRecursion)AbstractHookEngine::getTailRecursion();
|
||||
|
||||
AbstractHookEngine* g_mhook = new MHook();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user