mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove the 32,767 character limit on the environment block for Start-Process (#14111)
This commit is contained in:
@@ -2370,10 +2370,6 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
// Use Unicode encoding
|
||||
bytes = Encoding.Unicode.GetBytes(builder.ToString());
|
||||
if (bytes.Length > 0xffff)
|
||||
{
|
||||
throw new InvalidOperationException("EnvironmentBlockTooLong");
|
||||
}
|
||||
|
||||
return bytes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user