Parcourir la source

loop() crashes when hooked with MinHook

as expected basically
master
aaaaaa aaaaaaa il y a 6 ans
Parent
révision
c7e4e9b050
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      tester/minhook.cpp

+ 1
- 1
tester/minhook.cpp Voir le fichier

@@ -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;

Chargement…
Annuler
Enregistrer