Patch level : 12.0 904

Files correlati     : xvaga.dll
Commento            : Corretto comando PowerShell per mail
This commit is contained in:
Sirio Builder 2019-11-28 20:46:55 +01:00
parent d3b2189fbf
commit 92dcf87070

View File

@ -396,7 +396,7 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn,
file.Close();
wxString command;
command << "PowerShell -ExecutionPolicy ByPass -NonInteractive -NoProfile -Command \"& {" << powerFile << "; exit $LastExitCode }\"";
command << R"(PowerShell -ExecutionPolicy ByPass -NonInteractive -NoProfile -Command "&{)" << powerFile << R"(; exit $LastExitCode }")";
BOOLEAN sys_command = (BOOLEAN)system(command);
if (!sys_command)
@ -412,4 +412,4 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn,
}
}
return sys_command;
}
}