mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Forwarder not correctly returning return code on Windows
This commit is contained in:
@@ -131,7 +131,12 @@ int launchExecutable() {
|
||||
::CloseHandle(pi.hThread);
|
||||
::CloseHandle(hChildStdoutRead);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
DWORD exitCode = 0;
|
||||
if (::GetExitCodeProcess(pi.hProcess, &exitCode)) {
|
||||
return static_cast<int>(exitCode);
|
||||
} else {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
||||
Reference in New Issue
Block a user