Commit 2a52efb7 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

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: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a1ca90d6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment