Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Jan 4, 2023
1 parent 9a5635e commit aaf907a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions KirikiriUnencryptedArchive/Debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ void* Debugger::FindExport(HMODULE hModule, const char* pszName)
{
FindExportContext context{};
context.pszName = pszName;
DetourEnumerateExports(hModule, &context, CheckModuleExport);
DetourEnumerateExports(hModule, &context, CheckExport);
return context.pFunction;
}

BOOL Debugger::CheckModuleExport(PVOID pContext, ULONG nOrdinal, LPCSTR pszName, PVOID pCode)
BOOL Debugger::CheckExport(PVOID pContext, ULONG nOrdinal, LPCSTR pszName, PVOID pCode)
{
FindExportContext* pFindContext = (FindExportContext*)pContext;
if (pszName != nullptr && strcmp(pszName, pFindContext->pszName) == 0)
Expand Down
2 changes: 1 addition & 1 deletion KirikiriUnencryptedArchive/Debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Debugger
void* pFunction;
};

static BOOL __stdcall CheckModuleExport (PVOID pContext, ULONG nOrdinal, LPCSTR pszName, PVOID pCode);
static BOOL __stdcall CheckExport (PVOID pContext, ULONG nOrdinal, LPCSTR pszName, PVOID pCode);

static void ApplyMemoryBreakpoints ();

Expand Down

0 comments on commit aaf907a

Please sign in to comment.