Andrew Eikum : shell32: Always create default known folder directories.
Module: wine Branch: master Commit: 978e03ea942a7734dfb2d8c4b79e84fe8ac89f78 URL: https://source.winehq.org/git/wine.git/?a=commit;h=978e03ea942a7734dfb2d8c4b... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Thu Jun 17 10:43:01 2021 -0500 shell32: Always create default known folder directories. Some applications query for the default path, but this would fail on older prefixes where the new default path was never created. Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/shell32/shellpath.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index f71b660a7aa..005e905baaa 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -4688,6 +4688,13 @@ static HRESULT _SHRegisterFolders(HKEY hRootKey, HANDLE hToken, } } } + else + { + /* create the default dir, which may be different from the path + * stored in the registry. */ + SHGetFolderPathW(NULL, folders[i] | CSIDL_FLAG_CREATE, + hToken, SHGFP_TYPE_DEFAULT, path); + } } if (hUserKey) RegCloseKey(hUserKey);
participants (1)
-
Alexandre Julliard