Module: wine
Branch: master
Commit: 2a52efb7a3ef9e65c473433aa920569cac909569
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2a52efb7a3ef9e65c473433a…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Thu May 27 13:37:03 2021 -0500
shell32: Use stored registry path for known folder symlinks.
This allows us to keep the same symlinks for knownfolders after the
upcoming patches. A functional change is that, if a user or
application has redirected one of the known folders, we will now
attempt to create the symlink at the redirected path instead of the
default one.
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/shell32/shellpath.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index 71267ecf580..c78fd1af80a 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -4064,7 +4064,7 @@ static inline char * _SHGetFolderUnixPath(const int nFolder)
HRESULT hr;
hr = SHGetFolderPathW(NULL, nFolder, NULL,
- SHGFP_TYPE_DEFAULT, wszTempPath);
+ SHGFP_TYPE_CURRENT, wszTempPath);
if (FAILED(hr)) return NULL;
return wine_get_unix_file_name(wszTempPath);