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
1ab0e418
Commit
1ab0e418
authored
Jul 06, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugs in resolve_folder.
parent
7d3e5973
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
action.c
dlls/msi/action.c
+13
-8
No files found.
dlls/msi/action.c
View file @
1ab0e418
...
...
@@ -1646,19 +1646,25 @@ static UINT resolve_folder(MSIHANDLE hPackage, LPCWSTR name, LPWSTR path,
package
->
folders
[
i
].
ParentIndex
].
Directory
,
path
,
source
,
set_prop
,
NULL
);
if
(
!
source
&&
package
->
folders
[
i
].
TargetDefault
[
0
]
)
if
(
!
source
)
{
strcatW
(
path
,
package
->
folders
[
i
].
TargetDefault
);
strcatW
(
path
,
cszbs
);
if
(
package
->
folders
[
i
].
TargetDefault
[
0
])
{
strcatW
(
path
,
package
->
folders
[
i
].
TargetDefault
);
strcatW
(
path
,
cszbs
);
}
strcpyW
(
package
->
folders
[
i
].
ResolvedTarget
,
path
);
TRACE
(
" resolved into %s
\n
"
,
debugstr_w
(
path
));
if
(
set_prop
)
MsiSetPropertyW
(
hPackage
,
name
,
path
);
}
else
if
(
package
->
folders
[
i
].
SourceDefault
[
0
])
else
{
strcatW
(
path
,
package
->
folders
[
i
].
SourceDefault
);
strcatW
(
path
,
cszbs
);
if
(
package
->
folders
[
i
].
SourceDefault
[
0
])
{
strcatW
(
path
,
package
->
folders
[
i
].
SourceDefault
);
strcatW
(
path
,
cszbs
);
}
strcpyW
(
package
->
folders
[
i
].
ResolvedSource
,
path
);
}
}
...
...
@@ -2195,7 +2201,7 @@ inline static UINT get_file_target(MSIHANDLE hPackage, LPCWSTR file_key,
{
if
(
package
->
files
[
index
].
State
>=
3
)
{
strc
mp
W
(
file_source
,
package
->
files
[
index
].
TargetPath
);
strc
py
W
(
file_source
,
package
->
files
[
index
].
TargetPath
);
return
ERROR_SUCCESS
;
}
else
...
...
@@ -2287,7 +2293,6 @@ static UINT ACTION_DuplicateFiles(MSIHANDLE hPackage)
if
(
MsiRecordIsNull
(
row
,
4
))
{
ERR
(
"HERE target path %s
\n
"
,
debugstr_w
(
file_source
));
strcpyW
(
dest_name
,
strrchrW
(
file_source
,
'\\'
)
+
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