From 94a2f9460e1cfaa1f5e6b1b2dd412ec7de1288a1 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 7 Feb 2025 22:19:35 +0100 Subject: [PATCH] impr: Use proper `main()` return values in forwarder --- main/forwarder/source/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/forwarder/source/main.cpp b/main/forwarder/source/main.cpp index a7d218563..196c186ee 100644 --- a/main/forwarder/source/main.cpp +++ b/main/forwarder/source/main.cpp @@ -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