Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing hooker_redirect() call #1

Open
ClaudiuHKS opened this issue Dec 17, 2023 · 0 comments
Open

Missing hooker_redirect() call #1

ClaudiuHKS opened this issue Dec 17, 2023 · 0 comments

Comments

@ClaudiuHKS
Copy link

ClaudiuHKS commented Dec 17, 2023

TEST_CASE ("SmartHook")
{
    original_call = (int (*)())(hooker_redirect((void*) &test_raw_hook1, (void*)&test_raw_hook_new));
    REQUIRE(original_call != HOOKER_ERROR);
    REQUIRE(test_raw_hook1() == 3);
    hooker_unhook((void*) &test_raw_hook1, (void*)original_call);
    REQUIRE(test_raw_hook1() == 1);
}

I can't find any hooker_redirect string in all project but test_hooks.cpp. I need such a function in Linux. For Windows, I use Microsoft Detours.
Thanks.

/// Unhook a hook created by hooker_hook(.., .., HOOKER_HOOK_REDIRECT, ..). specified but HOOKER_HOOK_REDIRECT does not exist at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant