Skip to content
Snippets Groups Projects
Commit b152f248 authored by rswindell's avatar rswindell
Browse files

putmsgptrs() will now return FALSE if iniWriteFile() returns FALSE

(out of disk space?).
parent 675c8e62
No related branches found
No related tags found
No related merge requests found
......@@ -3106,6 +3106,7 @@ BOOL DLLCALL putmsgptrs(scfg_t* cfg, user_t* user, subscan_t* subscan)
char path[MAX_PATH+1];
uint i;
time_t now = time(NULL);
BOOL result = TRUE;
if(user->number==0 || (user->rest&FLAG('G'))) /* Guest */
return(TRUE);
......@@ -3131,11 +3132,11 @@ BOOL DLLCALL putmsgptrs(scfg_t* cfg, user_t* user, subscan_t* subscan)
modified = TRUE;
}
if(modified)
iniWriteFile(fp, ini);
result = iniWriteFile(fp, ini);
iniFreeStringList(ini);
fclose(fp);
return TRUE;
return result;
}
/****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment