mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 20:59:36 +02:00
lazutils: FileNameIsTrimmed: check for slashes on Windows
git-svn-id: trunk@42704 -
This commit is contained in:
parent
084093d91e
commit
3c92d686f3
@ -528,6 +528,10 @@ begin
|
||||
inc(i);
|
||||
if i=NameLen then break;
|
||||
|
||||
{$IFDEF Windows}
|
||||
if StartPos[i]='/' then exit;
|
||||
{$ENDIF}
|
||||
|
||||
// check for double path delimiter
|
||||
if (StartPos[i] in AllowDirectorySeparators) then exit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user