Erich Hoover : shell32: Create the All Users Microsoft directory.
Alexandre Julliard
julliard at winehq.org
Thu Sep 20 15:05:38 CDT 2012
Module: wine
Branch: master
Commit: 7eb0d62b3d155f1e4099bf7778e4febf30dacdb6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7eb0d62b3d155f1e4099bf7778e4febf30dacdb6
Author: Erich Hoover <ehoover at mines.edu>
Date: Wed Sep 19 08:04:04 2012 -0600
shell32: Create the All Users Microsoft directory.
---
dlls/shell32/shellpath.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index 00ee079..e607149 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -2722,6 +2722,7 @@ static void _SHCreateSymbolicLinks(void)
static HRESULT create_extra_folders(void)
{
static const WCHAR environW[] = {'E','n','v','i','r','o','n','m','e','n','t',0};
+ static const WCHAR microsoftW[] = {'M','i','c','r','o','s','o','f','t',0};
static const WCHAR TempW[] = {'T','e','m','p',0};
static const WCHAR TEMPW[] = {'T','E','M','P',0};
static const WCHAR TMPW[] = {'T','M','P',0};
@@ -2746,6 +2747,12 @@ static HRESULT create_extra_folders(void)
RegSetValueExW( hkey, TMPW, 0, REG_SZ, (LPBYTE)path, (strlenW(path) + 1) * sizeof(WCHAR) );
}
RegCloseKey( hkey );
+
+ if (SUCCEEDED(hr))
+ {
+ hr = SHGetFolderPathAndSubDirW( 0, CSIDL_COMMON_APPDATA | CSIDL_FLAG_CREATE, NULL,
+ SHGFP_TYPE_DEFAULT, microsoftW, path );
+ }
return hr;
}
More information about the wine-cvs
mailing list