LazFileUtils: ResolveDots: respect AllowDirectorySeparators.

git-svn-id: trunk@42700 -
This commit is contained in:
bart 2013-09-09 11:50:06 +00:00
parent 7bd5a7d326
commit 3afb18b37f

View File

@ -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;