From af1363f34e66d9df37597c26bee1f1e758ef7a48 Mon Sep 17 00:00:00 2001 From: SIELA1915 Date: Fri, 12 Feb 2016 18:56:36 +0100 Subject: [PATCH] Fix for Mac Launch Program not returning true on success --- code/nel/src/misc/common.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/nel/src/misc/common.cpp b/code/nel/src/misc/common.cpp index 6ec0261f6..a24274026 100644 --- a/code/nel/src/misc/common.cpp +++ b/code/nel/src/misc/common.cpp @@ -780,7 +780,9 @@ bool launchProgram(const std::string &programName, const std::string &arguments, int res = system(command.c_str()); if (res && log) - nlwarning ("LAUNCH: Failed launched '%s' with arg '%s' return code %d", programName.c_str(), arguments.c_str(), res); + nlwarning ("LAUNCH: Failed launched '%s' with arg '%s' return code %d", programName.c_str(), arguments.c_str(), res); + if (!res) + return true; #else static bool firstLaunchProgram = true;