Explorar el Código

+ Fixed PeekExitStatus

michael hace 21 años
padre
commit
29bae36989
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;