[CLI] Simplify mitigated child arguments (#529)

This commit is contained in:
Andrey Modnov
2026-07-23 00:18:11 +03:00
committed by GitHub
parent 912883de05
commit 4682e64e81
+1 -6
View File
@@ -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();