mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 11:54:47 +00:00
shell32: Set the correct default for shell folders relative to the windows directory.
This commit is contained in:
parent
c4d75213ab
commit
7c25ab8a07
@ -1925,7 +1925,15 @@ static HRESULT _SHRegisterFolders(HKEY hRootKey, HANDLE hToken,
|
||||
else if (CSIDL_Data[folders[i]].type == CSIDL_Type_AllUsers)
|
||||
_SHGetAllUsersProfilePath(SHGFP_TYPE_DEFAULT, folders[i], path);
|
||||
else if (CSIDL_Data[folders[i]].type == CSIDL_Type_WindowsPath)
|
||||
{
|
||||
GetWindowsDirectoryW(path, MAX_PATH);
|
||||
if (CSIDL_Data[folders[i]].szDefaultPath &&
|
||||
!IS_INTRESOURCE(CSIDL_Data[folders[i]].szDefaultPath))
|
||||
{
|
||||
PathAddBackslashW(path);
|
||||
strcatW(path, CSIDL_Data[folders[i]].szDefaultPath);
|
||||
}
|
||||
}
|
||||
else
|
||||
hr = E_FAIL;
|
||||
if (*path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user