mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 10:10:20 +02:00
* Under win32, standard input and output are not guaranteed to have descriptors 0,1 and 2
This commit is contained in:
parent
c834c996e4
commit
b38526bfea
@ -44,7 +44,15 @@ Const
|
||||
Constructor TIOStream.Create(IOSType : TiosType);
|
||||
|
||||
begin
|
||||
{$ifdef win32}
|
||||
Case IOSType of
|
||||
iosOutput : FType:=Stdoutputhandle;
|
||||
iosInput : FType:=Stdinputhandle;
|
||||
iosError : FType:=StdErrorHandle;
|
||||
end;
|
||||
{$else}
|
||||
FType:=Ord(IOSType);
|
||||
{$endif}
|
||||
Inherited Create(Ftype);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user