Commit 9ae17687 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

shell32: Don't try to check for the folder's existence if we don't have a path.

parent 8272045c
......@@ -3544,6 +3544,8 @@ static HRESULT get_known_folder_path_by_id(
else
hr = SHGetKnownFolderPath( folderId, dwFlags, NULL, ppszPath );
if (FAILED(hr)) return hr;
/* check if known folder really exists */
dwAttributes = GetFileAttributesW(*ppszPath);
if(dwAttributes == INVALID_FILE_ATTRIBUTES || !(dwAttributes & FILE_ATTRIBUTE_DIRECTORY) )
......
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