photorec(): fix logic when ncurses is missing for an hypotical user stop request

This commit is contained in:
Christophe Grenier 2013-05-19 19:27:55 +02:00
parent 26bdf36adb
commit 767ae08639

View file

@ -503,15 +503,15 @@ int photorec(struct ph_param *params, const struct ph_options *options, alloc_da
/* Failed to save the session! */
#ifdef HAVE_NCURSES
if(ask_confirmation("PhotoRec has been unable to save its session status. Answer Y to really Quit, N to resume the recovery")!=0)
params->status=STATUS_QUIT;
#endif
params->status=STATUS_QUIT;
}
else
{
#ifdef HAVE_NCURSES
if(ask_confirmation("Answer Y to really Quit, N to resume the recovery")!=0)
params->status=STATUS_QUIT;
#endif
params->status=STATUS_QUIT;
}
break;
case PSTATUS_OK: