瀏覽代碼

loop() crashes when hooked with MinHook

as expected basically
master
aaaaaa aaaaaaa 6 年之前
父節點
當前提交
c7e4e9b050
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      tester/minhook.cpp

+ 1
- 1
tester/minhook.cpp 查看文件

@@ -70,7 +70,7 @@ bool MinHook::hook_all(void) {
bool ret3 = MH_CreateHook(getAVX(), &MinHook_Hooks::hookAVX, (LPVOID*)&trueAVX) == MH_OK;
bool ret4 = MH_CreateHook(getRDRAND(), &MinHook_Hooks::hookRDRAND, (LPVOID*)&trueRDRAND) == MH_OK;

bool ret5 = MH_CreateHook(getLoop(), &MinHook_Hooks::hookLoop, (LPVOID*)&trueLoop) == MH_OK;
//bool ret5 = MH_CreateHook(getLoop(), &MinHook_Hooks::hookLoop, (LPVOID*)&trueLoop) == MH_OK;
bool ret6 = MH_CreateHook(getTailRecursion(), &MinHook_Hooks::hookTail_recursion, (LPVOID*)&trueTailRecursion) == MH_OK;

bool ret7 = MH_EnableHook(MH_ALL_HOOKS) == MH_OK;

Loading…
取消
儲存