0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

updated for version 7.0b01

This commit is contained in:
Bram Moolenaar
2006-03-25 22:02:07 +00:00
parent fa1d140a2c
commit 42bbef4a49
3 changed files with 190 additions and 66 deletions

View File

@@ -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);