Skip to content

Commit

Permalink
Remove the 32,767 character limit on the environment block for `Start…
Browse files Browse the repository at this point in the history
…-Process` (PowerShell#14111)
  • Loading branch information
hbuckle authored and adityapatwardhan committed Mar 8, 2021
1 parent a6e7757 commit 58b7fe2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2341,10 +2341,6 @@ private static byte[] ConvertEnvVarsToByteArray(StringDictionary sd)

// Use Unicode encoding
bytes = Encoding.Unicode.GetBytes(builder.ToString());
if (bytes.Length > 0xffff)
{
throw new InvalidOperationException("EnvironmentBlockTooLong");
}

return bytes;
}
Expand Down

0 comments on commit 58b7fe2

Please sign in to comment.