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
988509e1
Commit
988509e1
authored
Nov 07, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Nov 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use the file's component instead of passing an extra parameter to set_file_source.
parent
b81f1ce5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
files.c
dlls/msi/files.c
+5
-6
No files found.
dlls/msi/files.c
View file @
988509e1
...
...
@@ -335,13 +335,12 @@ static BOOL extract_cabinet_file(MSIPACKAGE* package, struct media_info *mi)
return
ret
;
}
static
VOID
set_file_source
(
MSIPACKAGE
*
package
,
MSIFILE
*
file
,
MSICOMPONENT
*
comp
,
LPCWSTR
path
)
static
VOID
set_file_source
(
MSIPACKAGE
*
package
,
MSIFILE
*
file
,
LPCWSTR
path
)
{
if
(
!
file
->
IsCompressed
)
{
LPWSTR
p
,
path
;
p
=
resolve_folder
(
package
,
comp
->
Directory
,
TRUE
,
FALSE
,
NULL
);
p
=
resolve_folder
(
package
,
file
->
Component
->
Directory
,
TRUE
,
FALSE
,
NULL
);
path
=
build_directory_name
(
2
,
p
,
file
->
ShortName
);
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
path
))
{
...
...
@@ -466,7 +465,7 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
if
(
file
->
Sequence
<=
mi
->
last_sequence
)
{
set_file_source
(
package
,
file
,
comp
,
mi
->
last_path
);
set_file_source
(
package
,
file
,
mi
->
last_path
);
TRACE
(
"Media already ready (%u, %u)
\n
"
,
file
->
Sequence
,
mi
->
last_sequence
);
return
ERROR_SUCCESS
;
}
...
...
@@ -488,7 +487,7 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
if
(
!
file
->
IsCompressed
)
{
mi
->
last_path
=
resolve_folder
(
package
,
comp
->
Directory
,
TRUE
,
FALSE
,
NULL
);
set_file_source
(
package
,
file
,
comp
,
mi
->
last_path
);
set_file_source
(
package
,
file
,
mi
->
last_path
);
MsiSourceListAddMediaDiskW
(
package
->
ProductCode
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
mi
->
count
,
volume
,
...
...
@@ -592,7 +591,7 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
MSICODE_PRODUCT
|
MSISOURCETYPE_MEDIA
,
INSTALLPROPERTY_LASTUSEDSOURCEW
,
mi
->
last_path
);
}
set_file_source
(
package
,
file
,
comp
,
mi
->
last_path
);
set_file_source
(
package
,
file
,
mi
->
last_path
);
MsiSourceListAddMediaDiskW
(
package
->
ProductCode
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
mi
->
count
,
volume
,
...
...
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