mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 00:16:15 +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;
|
function FilenameIsWinAbsolute(const TheFilename: string): boolean;
|
||||||
begin
|
begin
|
||||||
|
{$ifdef wince}
|
||||||
|
Result := (Length(TheFilename) > 0) and (TheFilename[1] = '\');
|
||||||
|
{$else wince}
|
||||||
Result:=((length(TheFilename)>=3) and
|
Result:=((length(TheFilename)>=3) and
|
||||||
(TheFilename[1] in ['A'..'Z','a'..'z']) and (TheFilename[2]=':') and (TheFilename[3]='\'))
|
(TheFilename[1] in ['A'..'Z','a'..'z']) and (TheFilename[2]=':') and (TheFilename[3]='\'))
|
||||||
or ((length(TheFilename)>=2) and (TheFilename[1]='\') and (TheFilename[2]='\'))
|
or ((length(TheFilename)>=2) and (TheFilename[1]='\') and (TheFilename[2]='\'))
|
||||||
;
|
;
|
||||||
|
{$endif wince}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function FilenameIsUnixAbsolute(const TheFilename: string): boolean;
|
function FilenameIsUnixAbsolute(const TheFilename: string): boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user