Browse Source

* don't move the output/stderr handle to the end on Windows and WinCE as that is handled by TIODescriptor.CreateFileNameHandle()

Sven/Sarah Barth 6 months ago
parent
commit
15f88d5e13

+ 0 - 2
packages/fcl-process/src/win/process.inc

@@ -336,8 +336,6 @@ begin
       begin
         Result:=CreateFileW(PWideChar(WideString(aFileName)), GENERIC_WRITE,
           FILE_SHARE_READ, @sec, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
-        if not(Result=INVALID_HANDLE_VALUE) then
-          FileSeek(Result, 0, 2);
       end;
   end;
   if (Result=INVALID_HANDLE_VALUE) then

+ 0 - 2
packages/fcl-process/src/wince/process.inc

@@ -367,8 +367,6 @@ begin
       begin
         Result:=CreateFileW(PWideChar(WideString(aFileName)), GENERIC_WRITE,
           FILE_SHARE_READ, @sec, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
-        if not(Result=INVALID_HANDLE_VALUE) then
-          FileSeek(Result, 0, 2);
       end;
   end;
   if (Result=INVALID_HANDLE_VALUE) then