aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2010-08-19 18:38:41 +0200
committerJuanma Barranquero2010-08-19 18:38:41 +0200
commit926cd98cf11c307a3cce8c4fd963e1af719acd8d (patch)
tree8ded49cc67158ab9b1716ad410e89948d7a63102
parentcc477da7cce7f574fcb86eeb356ae63465f0e7ca (diff)
downloademacs-926cd98cf11c307a3cce8c4fd963e1af719acd8d.tar.gz
emacs-926cd98cf11c307a3cce8c4fd963e1af719acd8d.zip
nt/addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/addpm.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 07550e1b2d2..05f01767bd3 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12010-08-19 Juanma Barranquero <lekktu@gmail.com>
2
3 * addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
4
12010-08-12 Jason Rumney <jasonr@gnu.org> 52010-08-12 Jason Rumney <jasonr@gnu.org>
2 6
3 * addpm.c (add_registry): Set path for runemacs.exe to use. 7 * addpm.c (add_registry): Set path for runemacs.exe to use.
diff --git a/nt/addpm.c b/nt/addpm.c
index 4fcebe2ca14..de09fd5382c 100644
--- a/nt/addpm.c
+++ b/nt/addpm.c
@@ -113,7 +113,7 @@ add_registry (char *path)
113 emacs_path = (char *) alloca (len); 113 emacs_path = (char *) alloca (len);
114 sprintf (emacs_path, "%s\\bin\\emacs.exe", path); 114 sprintf (emacs_path, "%s\\bin\\emacs.exe", path);
115 115
116 RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len); 116 RegSetValueEx (hrootkey, NULL, 0, REG_EXPAND_SZ, emacs_path, len);
117 117
118 /* Look for a GTK installation. If found, add it to the library search 118 /* Look for a GTK installation. If found, add it to the library search
119 path for Emacs so that the image libraries it provides are available 119 path for Emacs so that the image libraries it provides are available
@@ -135,7 +135,8 @@ add_registry (char *path)
135 len = strlen (path) + 5 + size; 135 len = strlen (path) + 5 + size;
136 dll_paths = (char *) alloca (size + strlen (path) + 1); 136 dll_paths = (char *) alloca (size + strlen (path) + 1);
137 sprintf (dll_paths, "%s\\bin;%s", path, gtk_path); 137 sprintf (dll_paths, "%s\\bin;%s", path, gtk_path);
138 RegSetValueEx (hrootkey, "Path", 0, REG_SZ, dll_paths, len); 138 RegSetValueEx (hrootkey, "Path", 0, REG_EXPAND_SZ,
139 dll_paths, len);
139 140
140 /* Set the same path for runemacs.exe, as the Explorer shell 141 /* Set the same path for runemacs.exe, as the Explorer shell
141 looks this up, so the above does not take effect when 142 looks this up, so the above does not take effect when
@@ -145,7 +146,7 @@ add_registry (char *path)
145 KEY_WRITE, NULL, &runemacs_key, NULL) 146 KEY_WRITE, NULL, &runemacs_key, NULL)
146 == ERROR_SUCCESS) 147 == ERROR_SUCCESS)
147 { 148 {
148 RegSetValueEx (runemacs_key, "Path", 0, REG_SZ, 149 RegSetValueEx (runemacs_key, "Path", 0, REG_EXPAND_SZ,
149 dll_paths, len); 150 dll_paths, len);
150 151
151 RegCloseKey (runemacs_key); 152 RegCloseKey (runemacs_key);