https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c5983e302d8ad8fe728a2…
commit c5983e302d8ad8fe728a2a4e055ef7ad43e5dc29
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Oct 21 11:12:10 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Oct 21 11:12:10 2018 +0200
[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 ae6f5cb8bd..1ade0703e0 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