summaryrefslogtreecommitdiff
path: root/nt/addpm.c
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2010-08-19 18:38:41 +0200
committerJuanma Barranquero <lekktu@gmail.com>2010-08-19 18:38:41 +0200
commit926cd98cf11c307a3cce8c4fd963e1af719acd8d (patch)
tree8ded49cc67158ab9b1716ad410e89948d7a63102 /nt/addpm.c
parentcc477da7cce7f574fcb86eeb356ae63465f0e7ca (diff)
downloademacs-926cd98cf11c307a3cce8c4fd963e1af719acd8d.tar.gz
nt/addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
Diffstat (limited to 'nt/addpm.c')
-rw-r--r--nt/addpm.c7
1 files changed, 4 insertions, 3 deletions
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)
emacs_path = (char *) alloca (len);
sprintf (emacs_path, "%s\\bin\\emacs.exe", path);
- RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len);
+ RegSetValueEx (hrootkey, NULL, 0, REG_EXPAND_SZ, emacs_path, len);
/* Look for a GTK installation. If found, add it to the library search
path for Emacs so that the image libraries it provides are available
@@ -135,7 +135,8 @@ add_registry (char *path)
len = strlen (path) + 5 + size;
dll_paths = (char *) alloca (size + strlen (path) + 1);
sprintf (dll_paths, "%s\\bin;%s", path, gtk_path);
- RegSetValueEx (hrootkey, "Path", 0, REG_SZ, dll_paths, len);
+ RegSetValueEx (hrootkey, "Path", 0, REG_EXPAND_SZ,
+ dll_paths, len);
/* Set the same path for runemacs.exe, as the Explorer shell
looks this up, so the above does not take effect when
@@ -145,7 +146,7 @@ add_registry (char *path)
KEY_WRITE, NULL, &runemacs_key, NULL)
== ERROR_SUCCESS)
{
- RegSetValueEx (runemacs_key, "Path", 0, REG_SZ,
+ RegSetValueEx (runemacs_key, "Path", 0, REG_EXPAND_SZ,
dll_paths, len);
RegCloseKey (runemacs_key);