Browse Source

Fix Result not assigned

Martin 1 year ago
parent
commit
c06bf85045
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/fcl-process/src/win/process.inc

+ 3 - 1
packages/fcl-process/src/win/process.inc

@@ -345,8 +345,10 @@ var
   Res : Boolean;
   
 begin
-  if IOType in [iotNone,iotFile] then
+  if IOType in [iotNone,iotFile] then begin
+    Result:=aHandle;
     exit;
+  end;
   oldHandle := ahandle;
   ahandle:=THandle(INVALID_HANDLE_VALUE); 
   Res := DuplicateHandle