Commit db35807e authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

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

parent 103f158c
...@@ -3589,7 +3589,7 @@ static HRESULT get_known_folder_path_by_id( ...@@ -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( ...@@ -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;
......
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