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
e1f752f7
Commit
e1f752f7
authored
Oct 10, 2005
by
Richard Cohen
Committed by
Alexandre Julliard
Oct 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't hardcode "windows" directory.
Make "My Pictures" etc. point to $HOME.
parent
b70a5f29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
shellpath.c
dlls/shell32/shellpath.c
+6
-2
No files found.
dlls/shell32/shellpath.c
View file @
e1f752f7
...
@@ -805,7 +805,7 @@ static const WCHAR szSHUserFolders[] = {'S','o','f','t','w','a','r','e','\\','M'
...
@@ -805,7 +805,7 @@ static const WCHAR szSHUserFolders[] = {'S','o','f','t','w','a','r','e','\\','M'
/* This defaults to L"Documents and Settings" on Windows 2000/XP, but we're
/* This defaults to L"Documents and Settings" on Windows 2000/XP, but we're
* acting more Windows 9x-like for now.
* acting more Windows 9x-like for now.
*/
*/
static
const
WCHAR
szDefaultProfileDirW
[]
=
{
'
w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'
p'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
's'
,
'\0'
};
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
AllUsersW
[]
=
{
'A'
,
'l'
,
'l'
,
' '
,
'U'
,
's'
,
'e'
,
'r'
,
's'
,
'\0'
};
typedef
enum
_CSIDL_Type
{
typedef
enum
_CSIDL_Type
{
...
@@ -1259,6 +1259,9 @@ static HRESULT _SHGetDefaultValue(BYTE folder, LPWSTR pszPath)
...
@@ -1259,6 +1259,9 @@ static HRESULT _SHGetDefaultValue(BYTE folder, LPWSTR pszPath)
switch
(
folder
)
switch
(
folder
)
{
{
case
CSIDL_PERSONAL
:
case
CSIDL_PERSONAL
:
case
CSIDL_MYMUSIC
:
case
CSIDL_MYPICTURES
:
case
CSIDL_MYVIDEO
:
{
{
const
char
*
home
=
getenv
(
"HOME"
);
const
char
*
home
=
getenv
(
"HOME"
);
...
@@ -1597,7 +1600,8 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
...
@@ -1597,7 +1600,8 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
{
{
WCHAR
szDefaultProfilesPrefix
[
MAX_PATH
];
WCHAR
szDefaultProfilesPrefix
[
MAX_PATH
];
strcpyW
(
szDefaultProfilesPrefix
,
SystemDriveW
);
GetWindowsDirectoryW
(
szDefaultProfilesPrefix
,
MAX_PATH
);
PathAddBackslashW
(
szDefaultProfilesPrefix
);
PathAppendW
(
szDefaultProfilesPrefix
,
szDefaultProfileDirW
);
PathAppendW
(
szDefaultProfilesPrefix
,
szDefaultProfileDirW
);
hr
=
_SHGetProfilesValue
(
key
,
ProfilesDirectoryW
,
szProfilesPrefix
,
hr
=
_SHGetProfilesValue
(
key
,
ProfilesDirectoryW
,
szProfilesPrefix
,
szDefaultProfilesPrefix
);
szDefaultProfilesPrefix
);
...
...
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