mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 04:58:22 +02:00
LazFileUtils: fix FilenameIsWinAbsolute for WinCE.
git-svn-id: trunk@42566 -
This commit is contained in:
parent
64c8d977b6
commit
1b9ad85931
@ -130,10 +130,14 @@ end;
|
||||
|
||||
function FilenameIsWinAbsolute(const TheFilename: string): boolean;
|
||||
begin
|
||||
{$ifdef wince}
|
||||
Result := (Length(TheFilename) > 0) and (TheFilename[1] = '\');
|
||||
{$else wince}
|
||||
Result:=((length(TheFilename)>=3) and
|
||||
(TheFilename[1] in ['A'..'Z','a'..'z']) and (TheFilename[2]=':') and (TheFilename[3]='\'))
|
||||
or ((length(TheFilename)>=2) and (TheFilename[1]='\') and (TheFilename[2]='\'))
|
||||
;
|
||||
{$endif wince}
|
||||
end;
|
||||
|
||||
function FilenameIsUnixAbsolute(const TheFilename: string): boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user