Skip to content

Possible bug in CNktHookLib::EnableHook? #28

@haohaolee

Description

@haohaolee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions