* Applied patch by accorp to fix unwanted parameter values in Opts output parameter of CheckOptions. (bug ID 29951)

git-svn-id: trunk@34500 -
This commit is contained in:
michael 2016-09-10 19:43:17 +00:00
parent 7d4b3dc7aa
commit 9cca873e54

View File

@ -643,8 +643,6 @@ begin
begin
HaveArg:=(I<ParamCount) and (Length(ParamStr(I+1))>0) and (ParamStr(I+1)[1]<>FOptionChar);
UsedArg:=False;
If HaveArg then
OV:=Paramstr(I+1);
If Not CaseSensitiveOptions then
O:=LowerCase(O);
L:=Length(O);
@ -668,10 +666,11 @@ begin
end;
Inc(J);
end;
If HaveArg and UsedArg then
HaveArg:=HaveArg and UsedArg;
If HaveArg then
begin
Inc(I); // Skip argument.
O:=O[Length(O)]; // O is added to arguments !
OV:=Paramstr(I);
end;
end;
If HaveArg and ((Result='') or AllErrors) then