From ba6a054ec3c2e722d3f9d70f8e90c14c89617d63 Mon Sep 17 00:00:00 2001 From: mkrsym1 Date: Sat, 12 Aug 2023 17:20:58 +0300 Subject: [PATCH] Show executable path in failed to start game process messagebox --- injector/src/dll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/injector/src/dll.c b/injector/src/dll.c index 6aa4c75..d70b467 100644 --- a/injector/src/dll.c +++ b/injector/src/dll.c @@ -88,7 +88,7 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) { &pi )) { wchar_t message[1024]; - wsprintfW(message, L"Failed to start game process: %ld", GetLastError()); + wsprintfW(message, L"Failed to start game process: %ld\nGame executable path: '%ls'", GetLastError(), targetExe); MessageBoxW(NULL, message, J_MB_TITLE, MB_OK | MB_ICONERROR); exit(1);