m68k-amiga: while trying to construct ParamStr(0), if the directory is empty, do not prepend the binary name with '/'

git-svn-id: trunk@44562 -
This commit is contained in:
Károly Balogh 2020-04-04 12:48:51 +00:00
parent e0fe8bd175
commit 433e40fe71

View File

@ -240,11 +240,16 @@ begin
if l = 0 then
begin
s1 := GetProgDir;
if length(s1) > 0 then
begin
if s1[Length(s1)] = ':' then
paramstr := s1 + GetProgramName
else
paramstr:=s1+'/'+GetProgramName;
end
else
paramstr:=GetProgramName;
end
else
begin
if (l > 0) and (l + 1 <= argc) then