소스 검색

* return false, if tdosinputfile.fileopen cannot open a file for reading

git-svn-id: trunk@29792 -
florian 10 년 전
부모
커밋
00d41dc9fa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/finput.pas

+ 1 - 1
compiler/finput.pas

@@ -454,7 +454,7 @@ uses
         fileopen:=false;
         fileopen:=false;
         try
         try
           f:=CFileStreamClass.Create(filename,fmOpenRead);
           f:=CFileStreamClass.Create(filename,fmOpenRead);
-          fileopen:=true;
+          fileopen:=CStreamError=0;
         except
         except
         end;
         end;
       end;
       end;