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
d21e1cc0
Commit
d21e1cc0
authored
Nov 08, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Move the file sequence check out of ready_media_info to avoid an unnecessary function call.
parent
6ef65129
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
files.c
dlls/msi/files.c
+6
-19
No files found.
dlls/msi/files.c
View file @
d21e1cc0
...
...
@@ -473,13 +473,6 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
UINT
rc
=
ERROR_SUCCESS
;
BOOL
found
=
FALSE
;
if
(
file
->
Sequence
<=
mi
->
last_sequence
)
{
set_file_source
(
package
,
file
,
mi
->
source
);
TRACE
(
"Media already ready (%u, %u)
\n
"
,
file
->
Sequence
,
mi
->
last_sequence
);
return
ERROR_SUCCESS
;
}
rc
=
load_media_info
(
package
,
file
,
mi
);
if
(
rc
!=
ERROR_SUCCESS
)
{
...
...
@@ -487,12 +480,6 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
return
ERROR_FUNCTION_FAILED
;
}
if
(
!
file
->
IsCompressed
)
{
set_file_source
(
package
,
file
,
mi
->
source
);
return
rc
;
}
if
(
mi
->
cabinet
)
{
TRACE
(
"Source is CAB %s
\n
"
,
debugstr_w
(
mi
->
cabinet
));
...
...
@@ -522,8 +509,6 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
rc
=
!
extract_cabinet_file
(
package
,
mi
);
}
set_file_source
(
package
,
file
,
mi
->
source
);
return
rc
;
}
...
...
@@ -636,21 +621,23 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
mi
=
msi_alloc_zero
(
sizeof
(
struct
media_info
)
);
/* Pass 2 */
LIST_FOR_EACH_ENTRY
(
file
,
&
package
->
files
,
MSIFILE
,
entry
)
{
if
(
file
->
state
!=
msifs_missing
&&
file
->
state
!=
msifs_overwrite
)
continue
;
TRACE
(
"Pass 2: %s
\n
"
,
debugstr_w
(
file
->
File
));
if
(
file
->
Sequence
>
mi
->
last_sequence
||
mi
->
is_continuous
)
{
rc
=
ready_media_for_file
(
package
,
mi
,
file
);
if
(
rc
!=
ERROR_SUCCESS
)
{
ERR
(
"Unable
to ready media
\n
"
);
ERR
(
"Failed
to ready media
\n
"
);
rc
=
ERROR_FUNCTION_FAILED
;
break
;
}
}
set_file_source
(
package
,
file
,
mi
->
source
);
TRACE
(
"file paths %s to %s
\n
"
,
debugstr_w
(
file
->
SourcePath
),
debugstr_w
(
file
->
TargetPath
));
...
...
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