|
@@ -402,7 +402,11 @@ begin
|
|
Result:=-1;
|
|
Result:=-1;
|
|
While I<=Length(DirName) do
|
|
While I<=Length(DirName) do
|
|
begin
|
|
begin
|
|
- If CharInSet(DirName[i],AllowDirectorySeparators) and
|
|
|
|
|
|
+ If (CharInSet(DirName[i],AllowDirectorySeparators)
|
|
|
|
+ {$ifdef HASAMIGA}
|
|
|
|
+ or (DirName[i] = DriveSeparator)
|
|
|
|
+ {$endif}
|
|
|
|
+ ) and
|
|
{ avoid error in case last char=pathdelim }
|
|
{ avoid error in case last char=pathdelim }
|
|
(length(dirname)>i) then
|
|
(length(dirname)>i) then
|
|
begin
|
|
begin
|