Skip to content

Detours updates variable holding address to let you call the patched function

Compare
Choose a tag to compare
@Lectem Lectem released this 25 Jul 18:03
· 15 commits to master since this release

This fixes a potential use after free and also exposes the detour pointer to ExtraPatchActions. This is useful if you want to just wrap (detour) a function and be able to call its original version.
However, this means that the user provided ExtraPatchAction must be alive until the end of the patching.
This involves a breaking change in the API hence version 3.0.0