소스 검색

* 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 14 년 전
부모
커밋
3c0256bd7b
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  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;