projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yikes - saving of Default Settings must have been broken for some
[u/mdw/putty]
/
winstore.c
diff --git
a/winstore.c
b/winstore.c
index
a69d58d
..
e0d9a78
100644
(file)
--- a/
winstore.c
+++ b/
winstore.c
@@
-67,6
+67,9
@@
void *open_settings_w(const char *sessionname)
int ret;
char *p;
int ret;
char *p;
+ if (!sessionname || !*sessionname)
+ sessionname = "Default Settings";
+
p = smalloc(3 * strlen(sessionname) + 1);
mungestr(sessionname, p);
p = smalloc(3 * strlen(sessionname) + 1);
mungestr(sessionname, p);
@@
-107,6
+110,9
@@
void *open_settings_r(const char *sessionname)
HKEY subkey1, sesskey;
char *p;
HKEY subkey1, sesskey;
char *p;
+ if (!sessionname || !*sessionname)
+ sessionname = "Default Settings";
+
p = smalloc(3 * strlen(sessionname) + 1);
mungestr(sessionname, p);
p = smalloc(3 * strlen(sessionname) + 1);
mungestr(sessionname, p);