Browse Source

+ Fixed PeekExitStatus

michael 21 years ago
parent
commit
29bae36989
1 changed files with 2 additions and 1 deletions
  1. 2 1
      fcl/win32/process.inc

+ 2 - 1
fcl/win32/process.inc

@@ -20,7 +20,8 @@ end;
 Function TProcess.PeekExitStatus : Boolean;
 Function TProcess.PeekExitStatus : Boolean;
 
 
 begin
 begin
-  Result:=GetExitStatus=Still_Active;
+  GetExitCodeProcess(Handle,FExitCode);
+  Result:=(FExitCode=Still_Active);
 end;
 end;
 
 
 Function TProcess.GetHandle : THandle;
 Function TProcess.GetHandle : THandle;