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
4a6855a5
Commit
4a6855a5
authored
Sep 06, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Re-add support for expanding ALLUSERSPROFILE for backward compatibility.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ceea5bda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
shellpath.c
dlls/shell32/shellpath.c
+14
-2
No files found.
dlls/shell32/shellpath.c
View file @
4a6855a5
...
...
@@ -951,7 +951,8 @@ static const WCHAR Videos_Sample_VideosW[] = {'V','i','d','e','o','s','\\','S','
static
const
WCHAR
WindowsW
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
0
};
static
const
WCHAR
Windows_Sidebar_GadgetsW
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
' '
,
'S'
,
'i'
,
'd'
,
'e'
,
'b'
,
'a'
,
'r'
,
'\\'
,
'G'
,
'a'
,
'd'
,
'g'
,
'e'
,
't'
,
's'
,
0
};
static
const
WCHAR
DefaultW
[]
=
{
'.'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'\0'
};
static
const
WCHAR
AllUsersProfileW
[]
=
{
'%'
,
'P'
,
'U'
,
'B'
,
'L'
,
'I'
,
'C'
,
'%'
,
0
};
static
const
WCHAR
AllUsersProfileW
[]
=
{
'%'
,
'A'
,
'L'
,
'L'
,
'U'
,
'S'
,
'E'
,
'R'
,
'S'
,
'P'
,
'R'
,
'O'
,
'F'
,
'I'
,
'L'
,
'E'
,
'%'
,
'\0'
};
static
const
WCHAR
PublicProfileW
[]
=
{
'%'
,
'P'
,
'U'
,
'B'
,
'L'
,
'I'
,
'C'
,
'%'
,
0
};
static
const
WCHAR
UserProfileW
[]
=
{
'%'
,
'U'
,
'S'
,
'E'
,
'R'
,
'P'
,
'R'
,
'O'
,
'F'
,
'I'
,
'L'
,
'E'
,
'%'
,
'\0'
};
static
const
WCHAR
ProgramDataVarW
[]
=
{
'%'
,
'P'
,
'r'
,
'o'
,
'g'
,
'r'
,
'a'
,
'm'
,
'D'
,
'a'
,
't'
,
'a'
,
'%'
,
'\0'
};
static
const
WCHAR
SystemDriveW
[]
=
{
'%'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'%'
,
'\0'
};
...
...
@@ -3474,7 +3475,7 @@ static HRESULT _SHGetDefaultValue(BYTE folder, LPWSTR pszPath)
strcpyW
(
pszPath
,
UserProfileW
);
break
;
case
CSIDL_Type_AllUsers
:
strcpyW
(
pszPath
,
AllUsers
ProfileW
);
strcpyW
(
pszPath
,
Public
ProfileW
);
break
;
case
CSIDL_Type_ProgramData
:
strcpyW
(
pszPath
,
ProgramDataVarW
);
...
...
@@ -3812,6 +3813,17 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
PathAppendW
(
szDest
,
szAllUsers
);
PathAppendW
(
szDest
,
szTemp
+
strlenW
(
AllUsersProfileW
));
}
else
if
(
!
strncmpiW
(
szTemp
,
PublicProfileW
,
strlenW
(
PublicProfileW
)))
{
WCHAR
szAllUsers
[
MAX_PATH
],
def_val
[
MAX_PATH
];
GetSystemDirectoryW
(
def_val
,
MAX_PATH
);
strcpyW
(
def_val
+
3
,
UsersPublicW
);
hr
=
_SHGetProfilesValue
(
key
,
PublicW
,
szAllUsers
,
def_val
);
PathAppendW
(
szDest
,
szAllUsers
);
PathAppendW
(
szDest
,
szTemp
+
strlenW
(
PublicProfileW
));
}
else
if
(
!
strncmpiW
(
szTemp
,
ProgramDataVarW
,
strlenW
(
ProgramDataVarW
)))
{
WCHAR
szProgramData
[
MAX_PATH
],
def_val
[
MAX_PATH
];
...
...
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