diff --git a/source/Cosmos.System.Plugs/System/IO/PathImpl.cs b/source/Cosmos.System.Plugs/System/IO/PathImpl.cs index 0941e0a6a..280212517 100644 --- a/source/Cosmos.System.Plugs/System/IO/PathImpl.cs +++ b/source/Cosmos.System.Plugs/System/IO/PathImpl.cs @@ -381,7 +381,7 @@ namespace Cosmos.System.Plugs.System.IO { for (int j = 0; j < aPath.Length; j++) { - if (xInvalidWithAdditional[i] == aPath[i]) + if (xInvalidWithAdditional[i] == aPath[j]) { return true; } @@ -394,7 +394,7 @@ namespace Cosmos.System.Plugs.System.IO { for (int j = 0; j < aPath.Length; j++) { - if (xInvalid[i] == aPath[i]) + if (xInvalid[i] == aPath[j]) { return true; }