Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TsudaKageyu/minhook
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: YimMenu/minhook
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Sep 6, 2022

  1. chore: bypass signature scanner

    MH_ERROR_NOT_EXECUTABLE => MH_ERROR_EXECUTABLE_NOT
    MH_ERROR_FUNCTION_NOT_FOUND => MH_ERROR_NOT_FOUND_FUNCTION
    GeopJr committed Sep 6, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    GeopJr Evan Paterakis
    Copy the full SHA
    61f2eb7 View commit details

Commits on Oct 13, 2022

  1. Copy the full SHA
    902ab63 View commit details
Showing with 6 additions and 6 deletions.
  1. +2 −2 include/MinHook.h
  2. +4 −4 src/hook.c
4 changes: 2 additions & 2 deletions include/MinHook.h
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ typedef enum MH_STATUS

// The specified pointer is invalid. It points the address of non-allocated
// and/or non-executable region.
MH_ERROR_NOT_EXECUTABLE,
MH_ERROR_EXECUTABLE_NOT,

// The specified target function cannot be hooked.
MH_ERROR_UNSUPPORTED_FUNCTION,
@@ -79,7 +79,7 @@ typedef enum MH_STATUS
MH_ERROR_MODULE_NOT_FOUND,

// The specified function is not found.
MH_ERROR_FUNCTION_NOT_FOUND
MH_ERROR_NOT_FOUND_FUNCTION
}
MH_STATUS;

8 changes: 4 additions & 4 deletions src/hook.c
Original file line number Diff line number Diff line change
@@ -644,7 +644,7 @@ MH_STATUS WINAPI MH_CreateHook(LPVOID pTarget, LPVOID pDetour, LPVOID *ppOrigina
}
else
{
status = MH_ERROR_NOT_EXECUTABLE;
status = MH_ERROR_EXECUTABLE_NOT;
}
}
else
@@ -878,7 +878,7 @@ MH_STATUS WINAPI MH_CreateHookApiEx(

pTarget = (LPVOID)GetProcAddress(hModule, pszProcName);
if (pTarget == NULL)
return MH_ERROR_FUNCTION_NOT_FOUND;
return MH_ERROR_NOT_FOUND_FUNCTION;

if(ppTarget != NULL)
*ppTarget = pTarget;
@@ -909,12 +909,12 @@ const char * WINAPI MH_StatusToString(MH_STATUS status)
MH_ST2STR(MH_ERROR_NOT_CREATED)
MH_ST2STR(MH_ERROR_ENABLED)
MH_ST2STR(MH_ERROR_DISABLED)
MH_ST2STR(MH_ERROR_NOT_EXECUTABLE)
MH_ST2STR(MH_ERROR_EXECUTABLE_NOT)
MH_ST2STR(MH_ERROR_UNSUPPORTED_FUNCTION)
MH_ST2STR(MH_ERROR_MEMORY_ALLOC)
MH_ST2STR(MH_ERROR_MEMORY_PROTECT)
MH_ST2STR(MH_ERROR_MODULE_NOT_FOUND)
MH_ST2STR(MH_ERROR_FUNCTION_NOT_FOUND)
MH_ST2STR(MH_ERROR_NOT_FOUND_FUNCTION)
}

#undef MH_ST2STR