MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / interface_cannot_create_file

Function interface_cannot_create_file

src/phrecn.c:158–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157#if defined(HAVE_NCURSES) && (defined(__CYGWIN__) || defined(__MINGW32__))
158static 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; */
183static int interface_cannot_create_file(void)

Callers 1

photorecFunction · 0.85

Calls 2

wmenuSelect_extFunction · 0.85
aff_copyFunction · 0.70

Tested by

no test coverage detected