summaryrefslogtreecommitdiffstats
path: root/src/pfree_whole.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-11-07 16:42:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-11-07 16:42:29 +0100
commit6d955e1fa5b73b20e780780e5a2e06645197bc1b (patch)
tree71c850f1aded2942c6c80b0ab757d9c74a9ec47f /src/pfree_whole.c
parent58bafec3cc854e298c10f2514df6a4c9239846b7 (diff)
PhotoRec: add carve free space only from FAT12 possibility
Diffstat (limited to 'src/pfree_whole.c')
-rw-r--r--src/pfree_whole.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/pfree_whole.c b/src/pfree_whole.c
index bf2df8f..76c8fd4 100644
--- a/src/pfree_whole.c
+++ b/src/pfree_whole.c
@@ -43,6 +43,12 @@ int ask_mode_ext2(const disk_t *disk_car, const partition_t *partition, unsigned
{'O',"Other","FAT/NTFS/HFS+/ReiserFS/..."},
{0,NULL,NULL}
};
+ static const struct MenuItem menuFAT12[]=
+ {
+ {'F',"Free", "Scan for files from FAT12 unallocated space only"},
+ {'W',"Whole","Extract files from whole partition"},
+ {0,NULL,NULL}
+ };
static const struct MenuItem menuFAT16[]=
{
{'F',"Free", "Scan for files from FAT16 unallocated space only"},
@@ -104,7 +110,10 @@ int ask_mode_ext2(const disk_t *disk_car, const partition_t *partition, unsigned
wmove(window,7,0);
wclrtoeol(window);
waddstr(window,"Please choose if all space need to be analysed:");
- if(partition->upart_type==UP_FAT16)
+ if(partition->upart_type==UP_FAT12)
+ command = wmenuSelect_ext(window, 23, 8, 0, menuFAT16, 11,
+ options, MENU_VERT | MENU_VERT_WARN | MENU_BUTTON, &menu,NULL);
+ else if(partition->upart_type==UP_FAT16)
command = wmenuSelect_ext(window, 23, 8, 0, menuFAT16, 11,
options, MENU_VERT | MENU_VERT_WARN | MENU_BUTTON, &menu,NULL);
else if(partition->upart_type==UP_FAT32)