Skip to content
Snippets Groups Projects
Commit 526742b0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Check result of sbbs_write_ini() - CID 451084

And display an error message upon failure.
parent 06a32813
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -2495,7 +2495,7 @@ void bail(int code) ...@@ -2495,7 +2495,7 @@ void bail(int code)
,&run_services ,&run_services
,&services_startup ,&services_startup
); );
sbbs_write_ini( if(!sbbs_write_ini(
fp fp
,&cfg ,&cfg
,&global_startup ,&global_startup
...@@ -2509,7 +2509,8 @@ void bail(int code) ...@@ -2509,7 +2509,8 @@ void bail(int code)
,&mail_startup ,&mail_startup
,run_services ,run_services
,&services_startup ,&services_startup
); ))
uifc.msgf("Error writing %s", cfg.filename);
iniCloseFile(fp); iniCloseFile(fp);
} }
uifc.pop(NULL); uifc.pop(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment