Jelajahi Sumber

* Fixed bug #31687

git-svn-id: trunk@35877 -
michael 8 tahun lalu
induk
melakukan
6a5ed4ac5b
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      packages/fcl-base/src/custapp.pp

+ 2 - 3
packages/fcl-base/src/custapp.pp

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