Sync with LyX 1.4.x

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10535 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-10-10 21:54:22 +00:00
parent 6019b31bbe
commit bfc2ca91fd

View File

@ -279,7 +279,7 @@ string const get_temp_dir()
{ {
#if defined (USE_WINDOWS_PACKAGING) #if defined (USE_WINDOWS_PACKAGING)
// Typical example: C:/TEMP/. // Typical example: C:/TEMP/.
char path[PATH_MAX + 1]; char path[PATH_MAX];
GetTempPath(PATH_MAX, path); GetTempPath(PATH_MAX, path);
return os::internal_path(path); return os::internal_path(path);
#else // Posix-like. #else // Posix-like.
@ -543,8 +543,8 @@ get_user_support_dir(string const & default_user_support_dir,
} }
// $HOME/.lyx on all platforms but Win32 where it will be something like // $HOME/.lyx on POSIX but on Win32 it will be something like
// "C:/Documents and Settings/USERNAME/Application Data/lyx" // "C:/Documents and Settings/USERNAME/Application Data/LyX"
string const get_default_user_support_dir(string const & home_dir) string const get_default_user_support_dir(string const & home_dir)
{ {
#if defined (USE_WINDOWS_PACKAGING) #if defined (USE_WINDOWS_PACKAGING)