mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 11:40:58 +01:00
LazFileUtils: ResolveDots: respect AllowDirectorySeparators.
git-svn-id: trunk@42700 -
This commit is contained in:
parent
7bd5a7d326
commit
3afb18b37f
@ -24,7 +24,7 @@ begin
|
||||
c:=AFilename[SrcPos];
|
||||
{$ifdef windows}
|
||||
//change / to \. The WinApi accepts both, but it leads to strange effects in other places
|
||||
if (c='/') then c := PathDelim;
|
||||
if (c in AllowDirectorySeparators) then c := PathDelim;
|
||||
{$endif}
|
||||
// check for double path delims
|
||||
if (c=PathDelim) then begin
|
||||
@ -131,7 +131,7 @@ begin
|
||||
c:=AFilename[SrcPos];
|
||||
{$ifdef windows}
|
||||
//change / to \. The WinApi accepts both, but it leads to strange effects in other places
|
||||
if (c='/') then c := PathDelim;
|
||||
if (c in AllowDirectorySeparators) then c := PathDelim;
|
||||
{$endif}
|
||||
if c=PathDelim then break;
|
||||
until false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user