shell32: Fall back on CSIDL path for knownfolders without a path in the registry.

This commit is contained in:
Andrew Eikum 2015-03-02 09:28:55 -06:00 committed by Alexandre Julliard
parent 103f158c63
commit db35807eb0
1 changed files with 3 additions and 2 deletions

View File

@ -3589,7 +3589,7 @@ static HRESULT get_known_folder_path_by_id(
DWORD dwFlags,
LPWSTR *ppszPath)
{
HRESULT hr;
HRESULT hr = E_FAIL;
WCHAR sGuid[39];
DWORD dwAttributes;
@ -3603,7 +3603,8 @@ static HRESULT get_known_folder_path_by_id(
hr = get_known_folder_path(sGuid, lpRegistryPath, ppszPath);
}
/* in other case, use older way */
else
if(FAILED(hr))
hr = SHGetKnownFolderPath( folderId, dwFlags, NULL, ppszPath );
if (FAILED(hr)) return hr;