summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2019-09-03 08:32:04 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2019-09-03 08:32:04 +0200
commit90932d8b4ba1e63d81c90182f671bb079ed724d5 (patch)
treed1511f37fb1b06a18524bb8b70fb4c5a40a443af /src
parentb9fa9df75679d9c2e8512cf62a55225fdabc9c44 (diff)
TestDisk always lets you return to quick or deeper search results.
Since commit 6da2c2a5a55dc00b4cdbf9936033b38c87012b93, it's possible to return to previous results when at least a partition was marked as primary or logical.
Diffstat (limited to 'src')
-rw-r--r--src/tpartwr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tpartwr.c b/src/tpartwr.c
index d6c3d43..0eece16 100644
--- a/src/tpartwr.c
+++ b/src/tpartwr.c
@@ -84,9 +84,14 @@ int interface_write(disk_t *disk_car,list_part_t *list_part,const int can_search
}
else
{
+ char options[10];
+ options[0]='R';
+ options[1]=0;
+ if(can_search_deeper)
+ strcat(options,"S");
log_flush();
#ifdef HAVE_NCURSES
- command=screen_buffer_display_ext(stdscr,(can_search_deeper?"S":""),menuWrite,menu);
+ command=screen_buffer_display_ext(stdscr, options, menuWrite,menu);
#endif
}
}