shell32: Fall back on CSIDL path for knownfolders without a path in the registry.
This commit is contained in:
parent
103f158c63
commit
db35807eb0
|
@ -3589,7 +3589,7 @@ static HRESULT get_known_folder_path_by_id(
|
||||||
DWORD dwFlags,
|
DWORD dwFlags,
|
||||||
LPWSTR *ppszPath)
|
LPWSTR *ppszPath)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr = E_FAIL;
|
||||||
WCHAR sGuid[39];
|
WCHAR sGuid[39];
|
||||||
DWORD dwAttributes;
|
DWORD dwAttributes;
|
||||||
|
|
||||||
|
@ -3603,7 +3603,8 @@ static HRESULT get_known_folder_path_by_id(
|
||||||
hr = get_known_folder_path(sGuid, lpRegistryPath, ppszPath);
|
hr = get_known_folder_path(sGuid, lpRegistryPath, ppszPath);
|
||||||
}
|
}
|
||||||
/* in other case, use older way */
|
/* in other case, use older way */
|
||||||
else
|
|
||||||
|
if(FAILED(hr))
|
||||||
hr = SHGetKnownFolderPath( folderId, dwFlags, NULL, ppszPath );
|
hr = SHGetKnownFolderPath( folderId, dwFlags, NULL, ppszPath );
|
||||||
|
|
||||||
if (FAILED(hr)) return hr;
|
if (FAILED(hr)) return hr;
|
||||||
|
|
Loading…
Reference in New Issue