summaryrefslogtreecommitdiffstats
path: root/src/windows/cns/cns_reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/cns/cns_reg.c')
-rw-r--r--src/windows/cns/cns_reg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/windows/cns/cns_reg.c b/src/windows/cns/cns_reg.c
index 160eb15e3f..92255fe4f5 100644
--- a/src/windows/cns/cns_reg.c
+++ b/src/windows/cns/cns_reg.c
@@ -45,7 +45,7 @@ cns_load_registry(void)
cns_res.beep = 0;
cns_res.lifetime = DEFAULT_TKT_LIFE * 5;
cns_res.forwardable = 1;
-
+ cns_res.noaddresses = 0;
for (i = 1 ; i < FILE_MENU_MAX_LOGINS ; i++)
cns_res.logins[i][0] = '\0';
@@ -117,6 +117,9 @@ cns_load_registry(void)
if (registry_dword_get(key, "forwardable", &tdw) == 0)
cns_res.forwardable = tdw;
+ if (registry_dword_get(key, "noaddresses", &tdw) == 0)
+ cns_res.noaddresses = tdw;
+
if (registry_dword_get(key, "alert", &tdw) == 0)
cns_res.alert = tdw;
@@ -196,6 +199,7 @@ cns_save_registry(void)
registry_dword_set(key, "beep", cns_res.beep);
registry_dword_set(key, "lifetime", cns_res.lifetime);
registry_dword_set(key, "forwardable", cns_res.forwardable);
+ registry_dword_set(key, "noaddresses", cns_res.noaddresses);
registry_string_set(key, "name", cns_res.name);
registry_string_set(key, "realm", cns_res.realm);