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