Module: wine Branch: master Commit: 7545dbf2938b38620ea7f2a3d3571a423c783dc4 URL: https://gitlab.winehq.org/wine/wine/-/commit/7545dbf2938b38620ea7f2a3d3571a4...
Author: Alex Henrie dhenrale@amazon.com Date: Mon Mar 25 22:17:44 2024 +0000
shell32: Put temp directory in %LOCALAPPDATA%\Temp by default.
Wine renamed the "Application Data" directory to "AppData" in commit 4111801ab31 ("shell32: Use winvista+ AppData paths.", 2021-05-27), so we can use it for the temp directory now without having to worry about spaces in the path.
---
dlls/shell32/shellpath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 7fbded5743b..4330ee367b3 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -3263,8 +3263,7 @@ static HRESULT create_extra_folders(void) ret = RegCreateKeyW( HKEY_CURRENT_USER, L"Environment", &hkey ); if (ret) return HRESULT_FROM_WIN32( ret );
- /* FIXME: should be under AppData, but we don't want spaces in the temp path */ - hr = SHGetFolderPathAndSubDirW( 0, CSIDL_PROFILE | CSIDL_FLAG_CREATE, NULL, + hr = SHGetFolderPathAndSubDirW( 0, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_DEFAULT, L"Temp", path ); if (SUCCEEDED(hr)) {