Merge pull request #2 from xastrix/master

fix: forgot to call MH_RemoveHook()
This commit is contained in:
_or_75
2025-10-31 13:04:09 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -114,6 +114,8 @@ auto CHook_Loader::InstallHooks() -> bool
auto CHook_Loader::DestroyHooks() -> void
{
MH_DisableHook( MH_ALL_HOOKS );
MH_RemoveHook( MH_ALL_HOOKS );
MH_Uninitialize();
}
@@ -9,12 +9,10 @@ BOOL WINAPI DllMain( HINSTANCE hInstace , DWORD dwReason , LPVOID lpReserved )
DisableThreadLibraryCalls( hInstace );
GetDllLauncher()->OnDllMain( lpReserved , hInstace );
return TRUE;
break;
case DLL_PROCESS_DETACH:
GetDllLauncher()->OnDestroy();
return TRUE;
break;
}