Prechádzať zdrojové kódy

+ Fixed PeekExitStatus

michael 21 rokov pred
rodič
commit
29bae36989
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      fcl/win32/process.inc

+ 2 - 1
fcl/win32/process.inc

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