mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-25 20:28:48 +08:00
[CLI] Simplify mitigated child arguments (#529)
This commit is contained in:
@@ -551,12 +551,7 @@ internal static partial class Program
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var childArgs = new string[args.Length + 1];
|
string[] childArgs = [MitigatedChildFlag, .. args];
|
||||||
childArgs[0] = MitigatedChildFlag;
|
|
||||||
for (var i = 0; i < args.Length; i++)
|
|
||||||
{
|
|
||||||
childArgs[i + 1] = args[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
var commandLine = BuildCommandLine(processPath, childArgs);
|
var commandLine = BuildCommandLine(processPath, childArgs);
|
||||||
var startupInfoEx = new STARTUPINFOEX();
|
var startupInfoEx = new STARTUPINFOEX();
|
||||||
|
|||||||
Reference in New Issue
Block a user