mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 03:41:46 +00:00
[VFATLIB] Don't forcibly delete LFN when not in RW mode
This commit is contained in:
parent
35f7267a97
commit
c9c3622ef1
1 changed files with 8 additions and 0 deletions
|
@ -526,9 +526,17 @@ void lfn_check_orphaned(void)
|
||||||
free(long_name);
|
free(long_name);
|
||||||
if (interactive)
|
if (interactive)
|
||||||
printf("1: Delete.\n2: Leave it.\n");
|
printf("1: Delete.\n2: Leave it.\n");
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
else if (rw)
|
||||||
|
#else
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
printf(" Auto-deleting.\n");
|
printf(" Auto-deleting.\n");
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if ((!interactive && rw) || (interactive && get_key("12", "?") == '1')) {
|
||||||
|
#else
|
||||||
if (!interactive || get_key("12", "?") == '1') {
|
if (!interactive || get_key("12", "?") == '1') {
|
||||||
|
#endif
|
||||||
clear_lfn_slots(0, lfn_parts - 1);
|
clear_lfn_slots(0, lfn_parts - 1);
|
||||||
}
|
}
|
||||||
lfn_reset();
|
lfn_reset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue