ExpandFileNameUtf8: expand current drive if FileName = '\' (Windows)

git-svn-id: trunk@41035 -
This commit is contained in:
bart 2013-05-05 11:04:09 +00:00
parent 9c0da1b60e
commit fb55facdaa

View File

@ -50,9 +50,10 @@ begin
IsAbs := FileNameIsWinAbsolute(Fn);
if not IsAbs then
begin
StartsWithRoot := (Length(Fn) > 1) and
StartsWithRoot := (Fn = '\') or
((Length(Fn) > 1) and
(Fn[1] = DirectorySeparator) and
(Fn[2] <> DirectorySeparator);
(Fn[2] <> DirectorySeparator));
{$ifndef WinCE}
HasDrive := (Length(Fn) > 1) and
(Fn[2] = ':') and