mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
Was checking the wrong index for Path.HasInvalidPathChars.
This commit is contained in:
parent
8257fba6ac
commit
6eb6836047
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue