Skip to content

Commit

Permalink
Common: Unload FFNx replaced functions on detach
Browse files Browse the repository at this point in the history
  • Loading branch information
julianxhokaxhiu committed Jan 18, 2023
1 parent f8e7255 commit 1a10f62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2967,6 +2967,10 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
// Apply hext patching
hextPatcher.applyAll();
}
else if (fdwReason == DLL_PROCESS_DETACH)
{
unreplace_functions();
}

return TRUE;
}
Expand Down

0 comments on commit 1a10f62

Please sign in to comment.