We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a873589 commit ae0ab67Copy full SHA for ae0ab67
1 file changed
NtApiDotNet/NtProcessEnvironmentVariable.cs
@@ -54,7 +54,7 @@ internal NtProcessEnvironmentVariable(string value)
54
internal static IEnumerable<NtProcessEnvironmentVariable> ParseEnvironmentBlock(byte[] environment)
55
{
56
string env_str = Encoding.Unicode.GetString(environment);
57
- int end_index = env_str.IndexOf("\0\0");
+ int end_index = env_str.IndexOf("\0\0", StringComparison.Ordinal);
58
if (end_index >= 0)
59
60
env_str = env_str.Substring(0, end_index);
0 commit comments