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
dce07c40
Commit
dce07c40
authored
Sep 17, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure paths end with a slash before concatenating file names.
parent
8a8ee786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
action.c
dlls/msi/action.c
+10
-0
No files found.
dlls/msi/action.c
View file @
dce07c40
...
...
@@ -1965,12 +1965,17 @@ static UINT resolve_folder(MSIPACKAGE *package, LPCWSTR name, LPWSTR path,
if
(
package
->
folders
[
i
].
ParentIndex
>=
0
)
{
int
len
;
TRACE
(
" ! Parent is %s
\n
"
,
debugstr_w
(
package
->
folders
[
package
->
folders
[
i
].
ParentIndex
].
Directory
));
resolve_folder
(
package
,
package
->
folders
[
package
->
folders
[
i
].
ParentIndex
].
Directory
,
path
,
source
,
set_prop
,
NULL
);
len
=
strlenW
(
path
);
if
(
len
&&
path
[
len
-
1
]
!=
'\\'
)
strcatW
(
path
,
cszbs
);
if
(
!
source
)
{
if
(
package
->
folders
[
i
].
TargetDefault
[
0
])
...
...
@@ -2072,9 +2077,14 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
if
(
comp
)
{
int
len
;
/* calculate target */
resolve_folder
(
package
,
comp
->
Directory
,
file
->
TargetPath
,
FALSE
,
FALSE
,
NULL
);
/* make sure that the path ends in a \ */
len
=
strlenW
(
file
->
TargetPath
);
if
(
len
&&
file
->
TargetPath
[
len
-
1
]
!=
'\\'
)
strcatW
(
file
->
TargetPath
,
cszbs
);
strcatW
(
file
->
TargetPath
,
file
->
FileName
);
TRACE
(
"file %s resolves to %s
\n
"
,
...
...
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