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:
@ -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)
|
||||
|
Reference in New Issue
Block a user