mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-22 23:36:05 +02:00
Amiga-systems: bugfix for TProcess.commandline, left over space at exename
git-svn-id: trunk@42301 -
This commit is contained in:
parent
d5a3528670
commit
defcad25af
@ -86,14 +86,14 @@ begin
|
|||||||
begin
|
begin
|
||||||
I := GetNextWordPos (Params);
|
I := GetNextWordPos (Params);
|
||||||
ExecName := Copy (Params, 1, Pred (I));
|
ExecName := Copy (Params, 1, Pred (I));
|
||||||
Trim (ExecName);
|
ExecName := Trim (ExecName);
|
||||||
Delete (Params, 1, Pred (I));
|
Delete (Params, 1, Pred (I));
|
||||||
end
|
end
|
||||||
else if Copy (FCommandLine, 1, Length (ExecName)) = ExecName then
|
else if Copy (FCommandLine, 1, Length (ExecName)) = ExecName then
|
||||||
Delete (Params, 1, Succ (Length (ExecName)))
|
Delete (Params, 1, Succ (Length (ExecName)))
|
||||||
else
|
else
|
||||||
Delete (Params, 1, Pred (GetNextWordPos (Params)));
|
Delete (Params, 1, Pred (GetNextWordPos (Params)));
|
||||||
Trim (Params);
|
Params := Trim (Params);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
for I := 0 to Pred (Parameters.Count) do
|
for I := 0 to Pred (Parameters.Count) do
|
||||||
|
Loading…
Reference in New Issue
Block a user