Browse Source

--- Merging r19532 into '.':
U rtl/win/sysfile.inc

# revisions: 19532
r19532 | florian | 2011-10-23 16:20:00 +0200 (Sun, 23 Oct 2011) | 1 line
Changed paths:
M /trunk/rtl/win/sysfile.inc

* 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: branches/fixes_2_6@21607 -

marco 13 years ago
parent
commit
17685aa615
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;
 function do_isdevice(handle:thandle):boolean;
 begin
 begin
-{$ifndef WINCE}
-  do_isdevice:=(getfiletype(handle)=2);
-{$else WINCE}
   do_isdevice:=(handle = StdInputHandle) or (handle = StdOutputHandle) or (handle = StdErrorHandle);
   do_isdevice:=(handle = StdInputHandle) or (handle = StdOutputHandle) or (handle = StdErrorHandle);
-{$endif WINCE}
 end;
 end;