Skip to content

Conversation

DrusTheAxe
Copy link
Member

@DrusTheAxe DrusTheAxe commented Sep 3, 2025

If Detours isn't needed (no functions hooked) we'd still call DetourRestoreAfterWith(), DetourTransactionBegin() and DetourTransactionCommit(). Omit these unnecessary calls if Detours isn't needed.

Also removed some old dead (unused) code not used (excluded via #if)

@DrusTheAxe
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@codendone codendone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@DrusTheAxe DrusTheAxe merged commit 8297e6b into main Sep 6, 2025
34 checks passed
@DrusTheAxe DrusTheAxe deleted the user/drustheaxe/detours-dllmain-not-needed branch September 6, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants