Mercurial > vim
comparison src/dosinst.c @ 806:de6d169fe745
updated for version 7.0b01
author | vimboss |
---|---|
date | Sat, 25 Mar 2006 22:02:07 +0000 |
parents | d8f905020502 |
children | 756bed568f5d |
comparison
equal
deleted
inserted
replaced
805:497fab3f99d6 | 806:de6d169fe745 |
---|---|
359 static void | 359 static void |
360 find_bat_exe(int check_bat_only) | 360 find_bat_exe(int check_bat_only) |
361 { | 361 { |
362 int i; | 362 int i; |
363 | 363 |
364 mch_chdir(sysdrive); /* avoid looking in the "installdir" */ | 364 /* avoid looking in the "installdir" by chdir to system root */ |
365 mch_chdir(sysdrive); | |
366 mch_chdir("\\"); | |
365 | 367 |
366 for (i = 1; i < TARGET_COUNT; ++i) | 368 for (i = 1; i < TARGET_COUNT; ++i) |
367 { | 369 { |
368 targets[i].oldbat = searchpath_save(targets[i].batname); | 370 targets[i].oldbat = searchpath_save(targets[i].batname); |
369 if (!check_bat_only) | 371 if (!check_bat_only) |
374 default_bat_dir = alloc(strlen(targets[i].oldbat) + 1); | 376 default_bat_dir = alloc(strlen(targets[i].oldbat) + 1); |
375 strcpy(default_bat_dir, targets[i].oldbat); | 377 strcpy(default_bat_dir, targets[i].oldbat); |
376 remove_tail(default_bat_dir); | 378 remove_tail(default_bat_dir); |
377 } | 379 } |
378 if (check_bat_only && targets[i].oldbat != NULL) | 380 if (check_bat_only && targets[i].oldbat != NULL) |
381 { | |
379 free(targets[i].oldbat); | 382 free(targets[i].oldbat); |
383 targets[i].oldbat = NULL; | |
384 } | |
380 } | 385 } |
381 | 386 |
382 mch_chdir(installdir); | 387 mch_chdir(installdir); |
383 } | 388 } |
384 | 389 |