mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Fixed: Don't use system() under Windows, because it'll open a console window, use launchProgramAndWaitForResult instead
--HG-- branch : develop
This commit is contained in:
parent
266a32ea19
commit
046c69066d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue