浏览代码

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