소스 검색

fixed broken do_isdevice

git-svn-id: trunk@4666 -
olle 19 년 전
부모
커밋
e83e8d0695
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      rtl/macos/sysfile.inc

+ 3 - 1
rtl/macos/sysfile.inc

@@ -19,7 +19,9 @@
 
 function do_isdevice(handle:longint):boolean;
 begin
-  do_isdevice:=false;
+  do_isdevice:= (handle=StdInputHandle) or
+                (handle=StdOutputHandle) or
+                (handle=StdErrorHandle);
 end;
 
 { close a file from the handle value }