* Under win32, standard input and output are not guaranteed to have descriptors 0,1 and 2

This commit is contained in:
michael 2000-01-21 17:12:28 +00:00
parent c834c996e4
commit b38526bfea

View File

@ -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;