瀏覽代碼

* patch (don't call waitprocess if not running) from Mantis 14707

git-svn-id: trunk@14022 -
marco 16 年之前
父節點
當前提交
e798f1164d
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/fcl-process/src/process.pp

+ 1 - 2
packages/fcl-process/src/process.pp

@@ -187,8 +187,7 @@ end;
 Function TProcess.GetExitStatus : Integer;
 
 begin
-  If FRunning then
-    PeekExitStatus;
+  GetRunning;
   Result:=FExitCode;
 end;