mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 17:48:01 +02:00
* don't move the output/stderr handle to the end on Windows and WinCE as that is handled by TIODescriptor.CreateFileNameHandle()
This commit is contained in:
parent
9355e703d7
commit
15f88d5e13
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user