Browse Source

* 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 -
florian 13 years ago
parent
commit
3c0256bd7b
1 changed files with 0 additions and 4 deletions
  1. 0 4
      rtl/win/sysfile.inc

+ 0 - 4
rtl/win/sysfile.inc

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