Patch level : 12.0 904
Files correlati : xvaga.dll Commento : Corretto comando PowerShell per mail
This commit is contained in:
parent
d3b2189fbf
commit
92dcf87070
@ -396,7 +396,7 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn,
|
|||||||
file.Close();
|
file.Close();
|
||||||
|
|
||||||
wxString command;
|
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);
|
BOOLEAN sys_command = (BOOLEAN)system(command);
|
||||||
if (!sys_command)
|
if (!sys_command)
|
||||||
@ -412,4 +412,4 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return sys_command;
|
return sys_command;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user