summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inject/injectee.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp
index 8a5085fe..96f6779b 100644
--- a/inject/injectee.cpp
+++ b/inject/injectee.cpp
@@ -495,7 +495,8 @@ patchFunction(HMODULE hModule,
}
if (VERBOSITY > 0) {
- debugPrintf("inject: patching %s -> %s!%s\n", szModule, pszDllName, pszFunctionName);
+ DWORD Offset = (DWORD)(UINT_PTR)lpOldFunctionAddress - (UINT_PTR)hModule;
+ debugPrintf("inject: patching %s!0x%lx -> %s!%s\n", szModule, Offset, pszDllName, pszFunctionName);
}
return replaceAddress(lpOldFunctionAddress, lpNewAddress);