Răsfoiți Sursa

* Fixed bug #31687

git-svn-id: trunk@35877 -
michael 8 ani în urmă
părinte
comite
6a5ed4ac5b
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  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;