浏览代码

* Fixed bug #31687

git-svn-id: trunk@35877 -
michael 8 年之前
父节点
当前提交
6a5ed4ac5b
共有 1 个文件被更改,包括 2 次插入3 次删除
  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;