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

Possible bug in CNktHookLib::EnableHook? #28

Open
haohaolee opened this issue Apr 27, 2021 · 0 comments
Open

Possible bug in CNktHookLib::EnableHook? #28

haohaolee opened this issue Apr 27, 2021 · 0 comments

Comments

@haohaolee
Copy link

haohaolee commented Apr 27, 2021

Hi folks,

After trying deviare-inproc, I find it does not work when I use LPHOOK_INFO aHookInfo[] instead of HOOK_INFO aHookInfo[].

And I guess the issue is because of the following line, in CNktHookLib::EnableHook, we should call EnableHookCommon with INTERNALFLAG_HookInfoArrayIsPtr instead of INTERNALFLAG_CallToOriginalIsPtr2Ptr

DWORD CNktHookLib::EnableHook(__in LPHOOK_INFO aHookInfo[], __in SIZE_T nCount, __in BOOL bEnable)
{
return EnableHookCommon(aHookInfo, nCount, bEnable, INTERNALFLAG_CallToOriginalIsPtr2Ptr);
}

Thanks

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