diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-07 04:49:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-07 04:49:27 +0100 |
commit | 03e228a623304c0afed231ad1605153dd56335be (patch) | |
tree | 6c1faa367ed42eddb9ec28f05f102466993fca6b | |
parent | fcea03ddd3dc54c8a0a786af5e75bbfbcf8fb3b7 (diff) |
updated for version 7.4.077v7.4.077
Problem: DOS installer creates shortcut without a path, resulting in the
current directory to be C:\Windows\system32.
Solution: Use environment variables.
-rw-r--r-- | src/dosinst.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/dosinst.c b/src/dosinst.c index 3c5e59bd5d..3fbfb5c5c2 100644 --- a/src/dosinst.c +++ b/src/dosinst.c @@ -1773,9 +1773,11 @@ build_shortcut( /* * We used to use "homedir" as the working directory, but that is a bad choice - * on multi-user systems. Not specifying a directory appears to work best. + * on multi-user systems. However, not specifying a directory results in the + * current directory to be c:\Windows\system32 on Windows 7. Use environment + * variables instead. */ -#define WORKDIR "" +#define WORKDIR "%HOMEDRIVE%%HOMEPATH%" /* * Create shortcut(s) in the Start Menu\Programs\Vim folder. diff --git a/src/version.c b/src/version.c index 770b3c8dba..6e11f7da18 100644 --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 77, +/**/ 76, /**/ 75, |