|
@@ -362,15 +362,14 @@ end;
|
|
|
|
|
|
procedure TCustomApplication.Terminate;
|
|
procedure TCustomApplication.Terminate;
|
|
begin
|
|
begin
|
|
- Terminate(0);
|
|
|
|
|
|
+ Terminate(ExitCode);
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TCustomApplication.Terminate(AExitCode : Integer) ;
|
|
procedure TCustomApplication.Terminate(AExitCode : Integer) ;
|
|
|
|
|
|
begin
|
|
begin
|
|
FTerminated:=True;
|
|
FTerminated:=True;
|
|
- If (AExitCode<>0) then
|
|
|
|
- ExitCode:=AExitCode;
|
|
|
|
|
|
+ ExitCode:=AExitCode;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TCustomApplication.GetOptionAtIndex(AIndex : Integer; IsLong: Boolean): String;
|
|
function TCustomApplication.GetOptionAtIndex(AIndex : Integer; IsLong: Boolean): String;
|