Mercurial > octave
diff liboctave/system/oct-env.cc @ 27838:659acfaaf0c9
Use APPDATA for startup file location on Windows (bug #40444).
* oct-env.cc (do_get_user_config_directory): Get location of APPDATA instead of
LOCALAPPDATA folder.
* basic.txi, NEWS: Change documentation and announcement accordingly.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 15 Dec 2019 12:35:12 +0100 |
parents | 8fd7d1d2a4ca |
children | b442ec6dda5c |
line wrap: on
line diff
--- a/liboctave/system/oct-env.cc Sun Dec 15 10:38:14 2019 +0100 +++ b/liboctave/system/oct-env.cc Sun Dec 15 12:35:12 2019 +0100 @@ -242,8 +242,7 @@ #if defined (OCTAVE_HAVE_WINDOWS_FILESYSTEM) && defined (OCTAVE_USE_WINDOWS_API) wchar_t path[MAX_PATH+1]; - if (SHGetFolderPathW (nullptr, - CSIDL_LOCAL_APPDATA | CSIDL_FLAG_DONT_VERIFY, + if (SHGetFolderPathW (nullptr, CSIDL_APPDATA | CSIDL_FLAG_DONT_VERIFY, nullptr, SHGFP_TYPE_CURRENT, path) == S_OK) { char *local_app_data = u8_from_wchar (path);