summaryrefslogtreecommitdiff
path: root/inject
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2015-02-06 22:46:02 +0000
committerJosé Fonseca <jfonseca@vmware.com>2015-02-06 22:46:02 +0000
commit40014908e52a66bfef5ac297989789b8626a6b4e (patch)
tree1fd7b3d0e357788ec50c0a4bd3177cd17309efde /inject
parentf4d3775268ee06af4dc84efb8449e3d50a3c3a2b (diff)
inject: Log patch offsets.
Diffstat (limited to 'inject')
-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);