diff --git a/components/lazutils/lazfileutils.pas b/components/lazutils/lazfileutils.pas index 3dc328bf19..d0864d6485 100644 --- a/components/lazutils/lazfileutils.pas +++ b/components/lazutils/lazfileutils.pas @@ -508,6 +508,7 @@ end; function FilenameIsTrimmed(StartPos: PChar; NameLen: integer): boolean; var i: Integer; + c: Char; begin Result:=false; if NameLen<=0 then begin @@ -522,16 +523,14 @@ begin if (StartPos[0]='.') and (StartPos[1] in AllowDirectorySeparators) then exit; i:=0; while iPathDelim then exit; 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;