From: Andrew Eikum Subject: [PATCH 1/5] shell32: Also return Attributes in GetFolderDefinition Message-Id: <20150302152827.GE2076@foghorn.codeweavers.com> Date: Mon, 2 Mar 2015 09:28:27 -0600 --- dlls/shell32/shellpath.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index d33091d..6f47468 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -3689,6 +3689,7 @@ static HRESULT WINAPI knownfolder_GetFolderDefinition( ZeroMemory(pKFD, sizeof(*pKFD)); + /* required fields */ hr = get_known_folder_dword(knownfolder->registryPath, szCategory, &pKFD->category); if(FAILED(hr)) return hr; @@ -3697,6 +3698,9 @@ static HRESULT WINAPI knownfolder_GetFolderDefinition( if(FAILED(hr)) return hr; + /* optional fields */ + get_known_folder_dword(knownfolder->registryPath, szAttributes, &pKFD->dwAttributes); + return S_OK; } -- 2.3.1