mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -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(pi.hThread);
|
||||||
::CloseHandle(hChildStdoutRead);
|
::CloseHandle(hChildStdoutRead);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
DWORD exitCode = 0;
|
||||||
|
if (::GetExitCodeProcess(pi.hProcess, &exitCode)) {
|
||||||
|
return static_cast<int>(exitCode);
|
||||||
|
} else {
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user