1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Various error-handling fixes, mostly in Unix PuTTY but one (failure

to save a session) crosses over into the platform-independent side.

[originally from svn r3041]
This commit is contained in:
Simon Tatham
2003-04-01 18:10:25 +00:00
parent 09ba8ca111
commit 7706da5e17
11 changed files with 114 additions and 46 deletions

View File

@ -141,15 +141,17 @@ static void wprefs(void *sesskey, char *name,
write_setting_s(sesskey, name, buf);
}
void save_settings(char *section, int do_host, Config * cfg)
char *save_settings(char *section, int do_host, Config * cfg)
{
void *sesskey;
char *errmsg;
sesskey = open_settings_w(section);
sesskey = open_settings_w(section, &errmsg);
if (!sesskey)
return;
return errmsg;
save_open_settings(sesskey, do_host, cfg);
close_settings_w(sesskey);
return NULL;
}
void save_open_settings(void *sesskey, int do_host, Config *cfg)