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

commit c9c3622ef12acbd4f2d5e8a633f128a0ecdac22f
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Thu Feb 14 10:12:31 2019 +0100
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Thu Feb 14 10:13:32 2019 +0100

    [VFATLIB] Don't forcibly delete LFN when not in RW mode
---
 sdk/lib/fslib/vfatlib/check/lfn.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sdk/lib/fslib/vfatlib/check/lfn.c 
b/sdk/lib/fslib/vfatlib/check/lfn.c
index 17832f80c7..a9af62bde6 100644
--- a/sdk/lib/fslib/vfatlib/check/lfn.c
+++ b/sdk/lib/fslib/vfatlib/check/lfn.c
@@ -526,9 +526,17 @@ void lfn_check_orphaned(void)
     free(long_name);
     if (interactive)
        printf("1: Delete.\n2: Leave it.\n");
+#ifdef __REACTOS__
+    else if (rw)
+#else
     else
+#endif
        printf("  Auto-deleting.\n");
+#ifdef __REACTOS__
+    if ((!interactive && rw) || (interactive && get_key("12", "?") == '1')) {
+#else
     if (!interactive || get_key("12", "?") == '1') {
+#endif
        clear_lfn_slots(0, lfn_parts - 1);
     }
     lfn_reset();

Reply via email to