summaryrefslogtreecommitdiffstats
path: root/src/pdisksel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdisksel.c')
-rw-r--r--src/pdisksel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pdisksel.c b/src/pdisksel.c
index 8e9f20b..ea3da29 100644
--- a/src/pdisksel.c
+++ b/src/pdisksel.c
@@ -265,8 +265,9 @@ static int photorec_disk_selection_ncurses(int verbose, const char *recup_dir, c
case 'O':
{
disk_t *disk=current_disk->disk;
+ const int hpa_dco=is_hpa_or_dco(disk);
autodetect_arch(disk);
- if((!is_hpa_or_dco(disk) || interface_check_hidden_ncurses(disk)==0) &&
+ if((hpa_dco==0 || interface_check_hidden_ncurses(disk, hpa_dco)==0) &&
interface_partition_type(disk, verbose, &current_cmd)==0)
menu_photorec(disk, verbose, recup_dir, file_enable, &current_cmd, list_search_space);
}