Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
853d9938
Commit
853d9938
authored
Feb 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Default to the more modern location for the user profile directory.
parent
03f04e15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
shellpath.c
dlls/shell32/shellpath.c
+9
-11
No files found.
dlls/shell32/shellpath.c
View file @
853d9938
...
...
@@ -801,11 +801,8 @@ static const WCHAR ProfilesDirectoryW[] = {'P','r','o','f','i','l','e','s','D','
static
const
WCHAR
AllUsersProfileValueW
[]
=
{
'A'
,
'l'
,
'l'
,
'U'
,
's'
,
'e'
,
'r'
,
's'
,
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
'\0'
};
static
const
WCHAR
szSHFolders
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
'\\'
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
's'
,
'\0'
};
static
const
WCHAR
szSHUserFolders
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
'\\'
,
'U'
,
's'
,
'e'
,
'r'
,
' '
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
's'
,
'\0'
};
/* This defaults to L"Documents and Settings" on Windows 2000/XP, but we're
* acting more Windows 9x-like for now.
*/
static
const
WCHAR
szDefaultProfileDirW
[]
=
{
'p'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
's'
,
'\0'
};
static
const
WCHAR
AllUsersW
[]
=
{
'A'
,
'l'
,
'l'
,
' '
,
'U'
,
's'
,
'e'
,
'r'
,
's'
,
'\0'
};
static
const
WCHAR
szDefaultProfileDirW
[]
=
{
'u'
,
's'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
AllUsersW
[]
=
{
'P'
,
'u'
,
'b'
,
'l'
,
'i'
,
'c'
,
0
};
typedef
enum
_CSIDL_Type
{
CSIDL_Type_User
,
...
...
@@ -1568,13 +1565,14 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
hr
=
_SHOpenProfilesKey
(
&
key
);
if
(
SUCCEEDED
(
hr
))
{
WCHAR
szDefaultProfilesPrefix
[
MAX_PATH
];
WCHAR
def_val
[
MAX_PATH
];
/* get the system drive */
GetSystemDirectoryW
(
def_val
,
MAX_PATH
);
if
(
def_val
[
1
]
==
':'
)
strcpyW
(
def_val
+
3
,
szDefaultProfileDirW
);
else
FIXME
(
"non-drive system paths unsupported
\n
"
);
GetWindowsDirectoryW
(
szDefaultProfilesPrefix
,
MAX_PATH
);
PathAddBackslashW
(
szDefaultProfilesPrefix
);
PathAppendW
(
szDefaultProfilesPrefix
,
szDefaultProfileDirW
);
hr
=
_SHGetProfilesValue
(
key
,
ProfilesDirectoryW
,
szProfilesPrefix
,
szDefaultProfilesPrefix
);
hr
=
_SHGetProfilesValue
(
key
,
ProfilesDirectoryW
,
szProfilesPrefix
,
def_val
);
}
*
szDest
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment