summaryrefslogtreecommitdiff
path: root/inject
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-07-30 15:14:44 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-08-03 11:27:12 +0100
commit1ec8346e096979617d6c48a44e137632ccc15aed (patch)
treee269a5e94d7686bd7e0c10599df411dbf7101608 /inject
parent07b5f139bc5c0bb7d340f50aac8c03cc2ff5a573 (diff)
inject: Log remote process PID on failure to inject.
Diffstat (limited to 'inject')
-rw-r--r--inject/inject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/inject/inject.h b/inject/inject.h
index 7185c83e..a293b5ce 100644
--- a/inject/inject.h
+++ b/inject/inject.h
@@ -244,7 +244,8 @@ injectDll(HANDLE hProcess, const char *szDllPath)
GetExitCodeThread(hThread, &hModule);
if (!hModule) {
- debugPrintf("inject: error: failed to load %s into the remote process\n", szDllPath);
+ debugPrintf("inject: error: failed to load %s into the remote process %lu\n",
+ szDllPath, GetProcessId(hProcess));
} else {
bRet = TRUE;
}