1
0
mirror of synced 2025-02-13 17:12:39 +01:00

impr: Use proper main() return values in forwarder

This commit is contained in:
WerWolv 2025-02-07 22:19:35 +01:00
parent 18cd39270a
commit 94a2f9460e

View File

@ -75,7 +75,7 @@ int launchExecutable() {
// Create pipes for stdout redirection
if (!::CreatePipe(&hChildStdoutRead, &hChildStdoutWrite, &saAttr, 0)) {
return 1;
return EXIT_FAILURE;
}
// Set up the STARTUPINFO structure for the child process
@ -101,7 +101,7 @@ int launchExecutable() {
&si, // STARTUPINFO
&pi // PROCESS_INFORMATION
)) {
return 1;
return EXIT_FAILURE;
}
// Close unnecessary pipe handles in the parent process