Advanced Rogue 5: replace calls to unlink() with md_unlink().
This commit is contained in:
parent
4381177d66
commit
9ad85754bd
2 changed files with 4 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ gotfile:
|
|||
*/
|
||||
if (save_file(savef) != 0) {
|
||||
msg("Cannot create save file.");
|
||||
unlink(file_name);
|
||||
md_unlink(file_name);
|
||||
return(FALSE);
|
||||
}
|
||||
else return(TRUE);
|
||||
|
|
@ -235,9 +235,9 @@ char **envp;
|
|||
|
||||
if (!wizard)
|
||||
{
|
||||
if (unlink(file) < 0) {
|
||||
if (md_unlink(file) < 0) {
|
||||
close(inf); /* only close if system insists */
|
||||
if (unlink(file) < 0) {
|
||||
if (md_unlink(file) < 0) {
|
||||
endwin();
|
||||
printf("\nCannot unlink file\n");
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue