Commit d925cab4 authored by Accensus's avatar Accensus
Browse files

- Fixed incorrect loop condition when checking for PATH.

parent 42b7f211
...@@ -153,7 +153,7 @@ namespace ImageCropper ...@@ -153,7 +153,7 @@ namespace ImageCropper
} }
// [Ace] Maybe it's on system or user PATH? // [Ace] Maybe it's on system or user PATH?
for (var target = EnvironmentVariableTarget.User; target < EnvironmentVariableTarget.Machine; ++target) for (var target = EnvironmentVariableTarget.User; target <= EnvironmentVariableTarget.Machine; ++target)
{ {
foreach (string pathVar in (Environment.GetEnvironmentVariable("PATH", target) ?? "").Split(';')) foreach (string pathVar in (Environment.GetEnvironmentVariable("PATH", target) ?? "").Split(';'))
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment