https://git.reactos.org/?p=reactos.git;a=commitdiff;h=59dc951bf7555adc990dded96a8355f23f315495

commit 59dc951bf7555adc990dded96a8355f23f315495
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Mon May 28 09:00:13 2018 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Mon May 28 19:37:56 2018 +0200

    [VFATLIB] Only attempt to clear the dirty set bit in rw mode.
---
 sdk/lib/fslib/vfatlib/check/boot.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sdk/lib/fslib/vfatlib/check/boot.c 
b/sdk/lib/fslib/vfatlib/check/boot.c
index a1fd58a387..8596e2bb23 100644
--- a/sdk/lib/fslib/vfatlib/check/boot.c
+++ b/sdk/lib/fslib/vfatlib/check/boot.c
@@ -294,9 +294,11 @@ static char print_fat_dirty_state(void)
     if (interactive) {
        printf("1) Remove dirty bit\n" "2) No action\n");
        return get_key("12", "?");
-    } else
+    } else if (rw) {
        printf(" Automatically removing dirty bit.\n");
     return '1';
+    }
+    return '2';
 }
 
 static void check_fat_state_bit(DOS_FS * fs, void *b)

Reply via email to