diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-25 22:02:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-25 22:02:07 +0000 |
commit | 42bbef4a4996b5f7908b65d8bd01fccf8b883675 (patch) | |
tree | c2ef29c5b7af5db9c0480f3c9734011e486f50cd /src/dosinst.c | |
parent | fa1d140a2c8865c044d7a83a4f66bb755a6e104a (diff) | |
download | vim-git-42bbef4a4996b5f7908b65d8bd01fccf8b883675.tar.gz |
updated for version 7.0b01
Diffstat (limited to 'src/dosinst.c')
-rw-r--r-- | src/dosinst.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dosinst.c b/src/dosinst.c index a54d168cb..0c1617334 100644 --- a/src/dosinst.c +++ b/src/dosinst.c @@ -361,7 +361,9 @@ find_bat_exe(int check_bat_only) { int i; - mch_chdir(sysdrive); /* avoid looking in the "installdir" */ + /* avoid looking in the "installdir" by chdir to system root */ + mch_chdir(sysdrive); + mch_chdir("\\"); for (i = 1; i < TARGET_COUNT; ++i) { @@ -376,7 +378,10 @@ find_bat_exe(int check_bat_only) remove_tail(default_bat_dir); } if (check_bat_only && targets[i].oldbat != NULL) + { free(targets[i].oldbat); + targets[i].oldbat = NULL; + } } mch_chdir(installdir); |