From 6eb6836047260b1120a77891d300fd66c340ddcc Mon Sep 17 00:00:00 2001 From: "charles.betros@hcss.com" Date: Tue, 17 Nov 2015 13:20:13 -0600 Subject: [PATCH] Was checking the wrong index for Path.HasInvalidPathChars. --- source/Cosmos.System.Plugs/System/IO/PathImpl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }