[PATCH 1/4] shell32: Use stored registry path for known folder symlinks

Andrew Eikum aeikum at codeweavers.com
Thu May 27 13:37:03 CDT 2021


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 at codeweavers.com>
---
 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);
-- 
2.31.1





More information about the wine-devel mailing list