From 2481119b044d38b2410151bf989ebc11d78ce0ad Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 13 Feb 2016 13:57:43 +0100 Subject: [PATCH] Fixed: Return true when "open" succeeds under OS X --- code/nel/src/misc/common.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/nel/src/misc/common.cpp b/code/nel/src/misc/common.cpp index 41a11976f..b40734b73 100644 --- a/code/nel/src/misc/common.cpp +++ b/code/nel/src/misc/common.cpp @@ -777,8 +777,12 @@ bool launchProgram(const std::string &programName, const std::string &arguments, int res = system(command.c_str()); - if (res && log) + if (!res) return true; + + if (log) + { nlwarning ("LAUNCH: Failed launched '%s' with arg '%s' return code %d", programName.c_str(), arguments.c_str(), res); + } #else static bool firstLaunchProgram = true;