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
54530bc4
Commit
54530bc4
authored
Sep 06, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Assume that system directory always contains a drive letter.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89c25535
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
shellpath.c
dlls/shell32/shellpath.c
+4
-16
No files found.
dlls/shell32/shellpath.c
View file @
54530bc4
...
...
@@ -3792,8 +3792,7 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
/* 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
"
);
strcpyW
(
def_val
+
3
,
szDefaultProfileDirW
);
hr
=
_SHGetProfilesValue
(
key
,
ProfilesDirectoryW
,
szProfilesPrefix
,
def_val
);
}
...
...
@@ -3807,8 +3806,7 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
WCHAR
szAllUsers
[
MAX_PATH
],
def_val
[
MAX_PATH
];
GetSystemDirectoryW
(
def_val
,
MAX_PATH
);
if
(
def_val
[
1
]
==
':'
)
strcpyW
(
def_val
+
3
,
UsersPublicW
);
else
FIXME
(
"non-drive system paths unsupported
\n
"
);
strcpyW
(
def_val
+
3
,
UsersPublicW
);
hr
=
_SHGetProfilesValue
(
key
,
PublicW
,
szAllUsers
,
def_val
);
PathAppendW
(
szDest
,
szAllUsers
);
...
...
@@ -3833,8 +3831,7 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
if
(
!
in_registry
)
{
GetSystemDirectoryW
(
def_val
,
MAX_PATH
);
if
(
def_val
[
1
]
==
':'
)
strcpyW
(
def_val
+
3
,
ProgramDataW
);
else
FIXME
(
"non-drive system paths unsupported
\n
"
);
strcpyW
(
def_val
+
3
,
ProgramDataW
);
}
hr
=
_SHGetProfilesValue
(
key
,
ProgramDataW
,
szProgramData
,
def_val
);
...
...
@@ -3854,16 +3851,7 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
else
if
(
!
strncmpiW
(
szTemp
,
SystemDriveW
,
strlenW
(
SystemDriveW
)))
{
GetSystemDirectoryW
(
szDest
,
MAX_PATH
);
if
(
szDest
[
1
]
!=
':'
)
{
FIXME
(
"non-drive system paths unsupported
\n
"
);
hr
=
E_FAIL
;
}
else
{
strcpyW
(
szDest
+
3
,
szTemp
+
strlenW
(
SystemDriveW
)
+
1
);
hr
=
S_OK
;
}
strcpyW
(
szDest
+
3
,
szTemp
+
strlenW
(
SystemDriveW
)
+
1
);
}
else
{
...
...
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