diff --git a/RYFS.okm b/RYFS.okm index 3d64c7e..a359ff0 100644 --- a/RYFS.okm +++ b/RYFS.okm @@ -65,6 +65,11 @@ MODULE RYFS; nextFreeSector: INT; i: INT; BEGIN + i := ryfs_open(fileName, diskId, struct); + IF i # 0 THEN + RETURN(i); + END; + firstFreeEntry := ryfs_find_free_entry(diskId); firstFreeSector := ryfs_find_free_sector(diskId); IF (firstFreeEntry = 0) OR (firstFreeSector = 0) THEN