Vitaliy Margolen : shell32: Add Fonts to user's shell folders list.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 2 04:55:47 CDT 2006


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

Author: Vitaliy Margolen <wine-patch at kievinfo.com>
Date:   Thu Jun  1 09:30:48 2006 -0600

shell32: Add Fonts to user's shell folders list.

---

 dlls/shell32/shellpath.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index 9c8dda3..a0d8152 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -932,7 +932,7 @@ static const CSIDL_DATA CSIDL_Data[] =
     },
     { /* 0x14 - CSIDL_FONTS */
         CSIDL_Type_WindowsPath,
-        NULL,
+        FontsW,
         FontsW
     },
     { /* 0x15 - CSIDL_TEMPLATES */
@@ -1818,6 +1818,8 @@ static HRESULT _SHRegisterFolders(HKEY h
                  path);
             else if (CSIDL_Data[folders[i]].type == CSIDL_Type_AllUsers)
                 _SHGetAllUsersProfilePath(SHGFP_TYPE_DEFAULT, folders[i], path);
+            else if (CSIDL_Data[folders[i]].type == CSIDL_Type_WindowsPath)
+                GetWindowsDirectoryW(path, MAX_PATH);
             else
                 hr = E_FAIL;
             if (*path)
@@ -1870,7 +1872,8 @@ static HRESULT _SHRegisterUserShellFolde
      CSIDL_INTERNET_CACHE,
      CSIDL_COOKIES,
      CSIDL_HISTORY,
-     CSIDL_MYPICTURES
+     CSIDL_MYPICTURES,
+     CSIDL_FONTS
     };
     WCHAR userShellFolderPath[MAX_PATH], shellFolderPath[MAX_PATH];
     LPCWSTR pUserShellFolderPath, pShellFolderPath;




More information about the wine-cvs mailing list