fix: forgot to call MH_RemoveHook()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user