From efbea96142d51130b54483ead7ce73ae5bc319ac Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 17 Mar 2015 10:03:20 -0500 Subject: [PATCH] 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 b9d94217bb4..f43b0ed6142 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) ));