Remove the 32,767 character limit on the environment block for Start-Process (#14111)

This commit is contained in:
Henry Buckle
2021-03-02 15:05:55 -08:00
committed by GitHub
parent c5955a5c0d
commit 9aede0558a
@@ -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;
}