Andrew Eikum : shell32: Support setting and retrieving KnownFolder parsing names.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Apr 8 10:40:45 CDT 2015


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

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Wed Apr  8 08:52:46 2015 -0500

shell32: Support setting and retrieving KnownFolder parsing names.

---

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

diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index b35f04f..5337809 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -771,6 +771,7 @@ VOID WINAPI PathSetDlgItemPathAW(HWND hDlg, int id, LPCVOID pszPath)
 static const WCHAR szCategory[] = {'C','a','t','e','g','o','r','y',0};
 static const WCHAR szAttributes[] = {'A','t','t','r','i','b','u','t','e','s',0};
 static const WCHAR szName[] = {'N','a','m','e',0};
+static const WCHAR szParsingName[] = {'P','a','r','s','i','n','g','N','a','m','e',0};
 static const WCHAR szRelativePath[] = {'R','e','l','a','t','i','v','e','P','a','t','h',0};
 static const WCHAR szParentFolder[] = {'P','a','r','e','n','t','F','o','l','d','e','r',0};
 
@@ -3869,6 +3870,8 @@ static HRESULT WINAPI knownfolder_GetFolderDefinition(
 
     get_known_folder_wstr(knownfolder->registryPath, szRelativePath, &pKFD->pszRelativePath);
 
+    get_known_folder_wstr(knownfolder->registryPath, szParsingName, &pKFD->pszParsingName);
+
     return S_OK;
 }
 
@@ -4093,6 +4096,9 @@ static HRESULT register_folder(const KNOWNFOLDERID *rfid, const KNOWNFOLDER_DEFI
         if(SUCCEEDED(hr))
             hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, szName, 0, REG_SZ, (LPBYTE)pKFD->pszName, (lstrlenW(pKFD->pszName)+1)*sizeof(WCHAR) ));
 
+        if(SUCCEEDED(hr) && pKFD->pszParsingName)
+            hr = HRESULT_FROM_WIN32(RegSetValueExW(hKey, szParsingName, 0, REG_SZ, (LPBYTE)pKFD->pszParsingName, (lstrlenW(pKFD->pszParsingName)+1)*sizeof(WCHAR) ));
+
         if(SUCCEEDED(hr) && !IsEqualGUID(&pKFD->fidParent, &GUID_NULL))
         {
             WCHAR sParentGuid[39];




More information about the wine-cvs mailing list