diff --git a/KirikiriUnencryptedArchive/Debugger.cpp b/KirikiriUnencryptedArchive/Debugger.cpp index de8e721..0043226 100644 --- a/KirikiriUnencryptedArchive/Debugger.cpp +++ b/KirikiriUnencryptedArchive/Debugger.cpp @@ -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) diff --git a/KirikiriUnencryptedArchive/Debugger.h b/KirikiriUnencryptedArchive/Debugger.h index f1c41c6..3456c39 100644 --- a/KirikiriUnencryptedArchive/Debugger.h +++ b/KirikiriUnencryptedArchive/Debugger.h @@ -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 ();