ソースを参照

* Check running

git-svn-id: trunk@26708 -
michael 12 年 前
コミット
cace38029c
1 ファイル変更4 行追加1 行削除
  1. 4 1
      packages/fcl-process/src/process.pp

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

@@ -286,7 +286,10 @@ end;
 Function TProcess.GetExitCode : Integer;
 
 begin
-  Result:=GetExitStatus;
+  if Not Running then
+    Result:=GetExitStatus
+  else
+    Result:=0
 end;
 {$ENDIF}