mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 21:09:12 +02:00
ExpandFileNameUtf8: expand current drive if FileName = '\' (Windows)
git-svn-id: trunk@41035 -
This commit is contained in:
parent
9c0da1b60e
commit
fb55facdaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user