[PATCH 1/5] shell32: Also return Attributes in GetFolderDefinition
Andrew Eikum
aeikum at codeweavers.com
Mon Mar 2 09:28:27 CST 2015
---
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
More information about the wine-patches
mailing list