Was checking the wrong index for Path.HasInvalidPathChars.

This commit is contained in:
charles.betros@hcss.com 2015-11-17 13:20:13 -06:00
parent 8257fba6ac
commit 6eb6836047

View file

@ -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;
}