2
0
Эх сурвалжийг харах

* Check running

git-svn-id: trunk@26708 -
michael 12 жил өмнө
parent
commit
cace38029c

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

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