Andrew Eikum : shell32: Also register knownfolder attributes.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 18 10:26:28 CDT 2015


Module: wine
Branch: master
Commit: efbea96142d51130b54483ead7ce73ae5bc319ac
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=efbea96142d51130b54483ead7ce73ae5bc319ac

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Tue Mar 17 10:03:20 2015 -0500

shell32: Also register knownfolder attributes.

---

 dlls/shell32/shellpath.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index b9d9421..f43b0ed 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -3934,6 +3934,9 @@ static HRESULT WINAPI foldermanager_RegisterFolder(
         if(SUCCEEDED(hr))
             hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, szCategory, 0, REG_DWORD, (LPBYTE)&pKFD->category, sizeof(pKFD->category)));
 
+        if(SUCCEEDED(hr) && pKFD->dwAttributes != 0)
+            hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, szAttributes, 0, REG_DWORD, (LPBYTE)&pKFD->dwAttributes, sizeof(pKFD->dwAttributes)));
+
         if(SUCCEEDED(hr))
             hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, szName, 0, REG_SZ, (LPBYTE)pKFD->pszName, (lstrlenW(pKFD->pszName)+1)*sizeof(WCHAR) ));
 




More information about the wine-cvs mailing list