From 325573c938600b4f746f2a76ac989b1e2f7db345 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 23 Dec 2012 16:56:58 +0100 Subject: [PATCH] List Undelete in exFAT menu --- src/adv.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/adv.c b/src/adv.c index 646cd4bd..b150b23c 100644 --- a/src/adv.c +++ b/src/adv.c @@ -299,7 +299,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const else if(is_ntfs(partition)) options="tlubcq"; else if(is_exfat(partition)) - options="tlbcq"; + options="tlubcq"; else if(is_linux(partition)) { if(partition->upart_type==UP_EXT2) @@ -355,7 +355,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const (*current_cmd)+=10; command='s'; } - else + else if(isdigit(*current_cmd[0])) { unsigned int order; order= atoi(*current_cmd); @@ -448,8 +448,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const } else if(is_part_ntfs(partition)) { - ntfs_boot_sector(disk_car, partition, verbose, expert, current_cmd); -// exFAT_boot_sector(disk_car, partition, verbose, current_cmd); + if(partition->upart_type==UP_EXFAT) + exFAT_boot_sector(disk_car, partition, verbose, current_cmd); + else + ntfs_boot_sector(disk_car, partition, verbose, expert, current_cmd); rewrite=1; } else if(partition->upart_type==UP_FAT32)