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` (#14111)
  • Loading branch information
hbuckle committed Mar 2, 2021
1 parent c5955a5 commit 9aede05
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2370,10 +2370,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 9aede05

Please sign in to comment.