Sfoglia il codice sorgente

fixed UnixFileSystem.Old0()

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7097 8c9fc860-2736-0410-a75d-ab315db34111
eth.guenter 8 anni fa
parent
commit
6b5f3d14f5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      source/Unix.UnixFiles.Mod

+ 2 - 0
source/Unix.UnixFiles.Mod

@@ -299,6 +299,8 @@ TYPE
 									collection.AddOld(f);
 									EXIT
 								END
+							ELSE
+								(* file exists but open failed *)  f := NIL;  EXIT
 							END
 						ELSIF nextdir # "" THEN
 							MakePath( nextdir, name, path );  ScanPath( pos, nextdir );