Fix a bug in PathExtensions IsAbsolute. Fixes #2747
This code should not exist here, anyway. For reasons just like this. Need to find framework method for it.
This commit is contained in:
parent
d39fa5d3d1
commit
17e3e28d06
|
@ -60,7 +60,7 @@ namespace BizHawk.Common.PathExtensions
|
||||||
return false;
|
return false;
|
||||||
if (path[2] == '\\')
|
if (path[2] == '\\')
|
||||||
{
|
{
|
||||||
if (path[1] != '\\')
|
if (path[1] != ':')
|
||||||
return false;
|
return false;
|
||||||
bool driveLetter = ('A'.RangeTo('Z').Contains(path[0]) || 'a'.RangeTo('z').Contains(path[0]));
|
bool driveLetter = ('A'.RangeTo('Z').Contains(path[0]) || 'a'.RangeTo('z').Contains(path[0]));
|
||||||
return driveLetter;
|
return driveLetter;
|
||||||
|
|
Loading…
Reference in New Issue