[VFATLIB] Don't attempt to fix volume if not allowed

This commit is contained in:
Pierre Schweitzer
2018-10-21 11:12:10 +02:00
parent ec9fc7fade
commit c5983e302d

View File

@@ -666,7 +666,14 @@ static int check_file(DOS_FS * fs, DOS_FILE * file)
(rw) ? " Assuming EOF." : "");
#endif
if (prev)
#ifdef __REACTOS__
{
if (rw)
#endif
set_fat(fs, prev, -1);
#ifdef __REACTOS__
}
#endif
else if (!file->offset)
die("FAT32 root dir starts with a bad cluster!");
else