| 156 | |
| 157 | #if defined(HAVE_NCURSES) && (defined(__CYGWIN__) || defined(__MINGW32__)) |
| 158 | static int interface_cannot_create_file(void) |
| 159 | { |
| 160 | static const struct MenuItem menuMain[]= |
| 161 | { |
| 162 | { 'C', "Continue", "Continue the recovery."}, |
| 163 | { 'Q', "Quit", "Abort the recovery."}, |
| 164 | { 0,NULL,NULL} |
| 165 | }; |
| 166 | unsigned int menu=0; |
| 167 | int car; |
| 168 | aff_copy(stdscr); |
| 169 | wmove(stdscr,4,0); |
| 170 | wprintw(stdscr,"PhotoRec has been unable to create new file."); |
| 171 | wmove(stdscr,5,0); |
| 172 | wprintw(stdscr,"This problem may be due to antivirus blocking write access while scanning files created by PhotoRec."); |
| 173 | wmove(stdscr,6,0); |
| 174 | wprintw(stdscr,"If possible, temporarily disable your live antivirus protection."); |
| 175 | car= wmenuSelect_ext(stdscr, 23, INTER_MAIN_Y, INTER_MAIN_X, menuMain, 10, |
| 176 | "CQ", MENU_VERT | MENU_VERT_WARN | MENU_BUTTON, &menu,NULL); |
| 177 | if(car=='c' || car=='C') |
| 178 | return 0; |
| 179 | return 1; |
| 180 | } |
| 181 | #else |
| 182 | /*@ assigns \nothing; */ |
| 183 | static int interface_cannot_create_file(void) |
no test coverage detected