From efedb468ccbe4b82890998159607b29148807609 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 19:15:21 +0100 Subject: [PATCH] Fixed: Don't use system() under Windows, because it'll open a console window, use launchProgramAndWaitForResult instead --- code/nel/src/misc/report.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/misc/report.cpp b/code/nel/src/misc/report.cpp index bad97c845..261ef4d5d 100644 --- a/code/nel/src/misc/report.cpp +++ b/code/nel/src/misc/report.cpp @@ -105,7 +105,6 @@ TReportResult report(const std::string &title, const std::string &subject, const && CFile::isExists(NL_CRASH_REPORT_TOOL)) { std::string params; - params += NL_CRASH_REPORT_TOOL; if (!reportPath.empty()) params += NLMISC::toString(" -log \"%s\"", reportPath.c_str()); @@ -131,7 +130,8 @@ TReportResult report(const std::string &title, const std::string &subject, const if (synchronous) { - TReportResult result = (TReportResult)::system(params.c_str()); + TReportResult result = (TReportResult)NLMISC::launchProgramAndWaitForResult(NL_CRASH_REPORT_TOOL, params); + if (result != ReportAlwaysIgnore && result != ReportIgnore && result != ReportAbort