Fixed typo in the ordering of drive and path in ecl_homedir_pathname()

This commit is contained in:
Juan Jose Garcia Ripoll 2009-03-25 18:06:45 +01:00
parent 37af713c87
commit a6e095cd7d

View file

@ -547,12 +547,12 @@ ecl_homedir_pathname(cl_object user)
FEerror("Unknown user ~S.", 1, p);
} else if ((h = getenv("HOME"))) {
namestring = make_base_string_copy(h);
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(ming32)
} else if ((h = getenv("HOMEPATH")) && (d = getenv("HOMEDRIVE"))) {
namestring =
si_base_string_concatenate(2,
make_constant_base_string(h),
make_constant_base_string(d));
make_constant_base_string(d),
make_constant_base_string(h));
#endif
} else {
namestring = make_constant_base_string("/");