do not append directory separator when it is already there, as // equals /../ on Amiga, fixes smartlinked RTL build

git-svn-id: trunk@26126 -
This commit is contained in:
Károly Balogh 2013-11-24 03:09:24 +00:00
parent 6cd62437f9
commit 3d07b35d77

View File

@ -297,7 +297,7 @@ Implementation
var var
dir : TRawByteSearchRec; dir : TRawByteSearchRec;
begin begin
if findfirst(s+source_info.dirsep+'*'+AExt,faAnyFile,dir) = 0 then if findfirst(FixPath(s,false)+'*'+AExt,faAnyFile,dir) = 0 then
begin begin
repeat repeat
DeleteFile(s+source_info.dirsep+dir.name); DeleteFile(s+source_info.dirsep+dir.name);