mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 08:19:27 +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
|
begin
|
||||||
Result:=CreateFileW(PWideChar(WideString(aFileName)), GENERIC_WRITE,
|
Result:=CreateFileW(PWideChar(WideString(aFileName)), GENERIC_WRITE,
|
||||||
FILE_SHARE_READ, @sec, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
|
FILE_SHARE_READ, @sec, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
|
||||||
if not(Result=INVALID_HANDLE_VALUE) then
|
|
||||||
FileSeek(Result, 0, 2);
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
if (Result=INVALID_HANDLE_VALUE) then
|
if (Result=INVALID_HANDLE_VALUE) then
|
||||||
|
@ -367,8 +367,6 @@ begin
|
|||||||
begin
|
begin
|
||||||
Result:=CreateFileW(PWideChar(WideString(aFileName)), GENERIC_WRITE,
|
Result:=CreateFileW(PWideChar(WideString(aFileName)), GENERIC_WRITE,
|
||||||
FILE_SHARE_READ, @sec, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
|
FILE_SHARE_READ, @sec, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
|
||||||
if not(Result=INVALID_HANDLE_VALUE) then
|
|
||||||
FileSeek(Result, 0, 2);
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
if (Result=INVALID_HANDLE_VALUE) then
|
if (Result=INVALID_HANDLE_VALUE) then
|
||||||
|
Loading…
Reference in New Issue
Block a user