From c5983e302d8ad8fe728a2a4e055ef7ad43e5dc29 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 21 Oct 2018 11:12:10 +0200 Subject: [PATCH] [VFATLIB] Don't attempt to fix volume if not allowed --- sdk/lib/fslib/vfatlib/check/check.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdk/lib/fslib/vfatlib/check/check.c b/sdk/lib/fslib/vfatlib/check/check.c index ae6f5cb8bdb..1ade0703e04 100644 --- a/sdk/lib/fslib/vfatlib/check/check.c +++ b/sdk/lib/fslib/vfatlib/check/check.c @@ -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