* patch by Ludo Brands to fix #20481: GetFileType cannot be used on windows to determine if a handle is a console handle because the function does not distinguish between consoles and printers, resolves #20481

git-svn-id: trunk@19532 -
This commit is contained in:
florian 2011-10-23 14:20:00 +00:00
parent dbaf153163
commit 3c0256bd7b

View File

@ -20,11 +20,7 @@
function do_isdevice(handle:thandle):boolean;
begin
{$ifndef WINCE}
do_isdevice:=(getfiletype(handle)=2);
{$else WINCE}
do_isdevice:=(handle = StdInputHandle) or (handle = StdOutputHandle) or (handle = StdErrorHandle);
{$endif WINCE}
end;