Browse Source

* Check running

git-svn-id: trunk@26708 -
michael 11 years ago
parent
commit
cace38029c
1 changed files with 4 additions and 1 deletions
  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}