From 92dcf87070b4d8d94437ddf6e2b54e4f9f8d2d2b Mon Sep 17 00:00:00 2001 From: Sirio Builder Date: Thu, 28 Nov 2019 20:46:55 +0100 Subject: [PATCH] Patch level : 12.0 904 Files correlati : xvaga.dll Commento : Corretto comando PowerShell per mail --- src/xvaga/xvtmail.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xvaga/xvtmail.cpp b/src/xvaga/xvtmail.cpp index 83a836ab0..f8e5a27b7 100755 --- a/src/xvaga/xvtmail.cpp +++ b/src/xvaga/xvtmail.cpp @@ -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; -} \ No newline at end of file +}