Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
18973df9
Commit
18973df9
authored
Mar 22, 2011
by
David Hedberg
Committed by
Alexandre Julliard
Mar 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Generalize media helpers a bit.
parent
fed6e521
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
files.c
dlls/msi/files.c
+3
-2
media.c
dlls/msi/media.c
+5
-5
msipriv.h
dlls/msi/msipriv.h
+2
-2
No files found.
dlls/msi/files.c
View file @
18973df9
...
...
@@ -302,7 +302,7 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
LIST_FOR_EACH_ENTRY
(
file
,
&
package
->
files
,
MSIFILE
,
entry
)
{
rc
=
msi_load_media_info
(
package
,
file
,
mi
);
rc
=
msi_load_media_info
(
package
,
file
->
Sequence
,
mi
);
if
(
rc
!=
ERROR_SUCCESS
)
{
ERR
(
"Unable to load media info for %s (%u)
\n
"
,
debugstr_w
(
file
->
File
),
rc
);
...
...
@@ -310,7 +310,8 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
}
if
(
!
file
->
Component
->
Enabled
)
continue
;
if
(
file
->
state
!=
msifs_hashmatch
&&
(
rc
=
ready_media
(
package
,
file
,
mi
)))
if
(
file
->
state
!=
msifs_hashmatch
&&
(
rc
=
ready_media
(
package
,
file
->
Sequence
,
file
->
IsCompressed
,
mi
)))
{
ERR
(
"Failed to ready media for %s
\n
"
,
debugstr_w
(
file
->
File
));
goto
done
;
...
...
dlls/msi/media.c
View file @
18973df9
...
...
@@ -656,7 +656,7 @@ static UINT get_drive_type(const WCHAR *path)
return
GetDriveTypeW
(
root
);
}
UINT
msi_load_media_info
(
MSIPACKAGE
*
package
,
MSIFILE
*
fil
e
,
MSIMEDIAINFO
*
mi
)
UINT
msi_load_media_info
(
MSIPACKAGE
*
package
,
UINT
Sequenc
e
,
MSIMEDIAINFO
*
mi
)
{
MSIRECORD
*
row
;
LPWSTR
source_dir
;
...
...
@@ -669,7 +669,7 @@ UINT msi_load_media_info(MSIPACKAGE *package, MSIFILE *file, MSIMEDIAINFO *mi)
'`'
,
'L'
,
'a'
,
's'
,
't'
,
'S'
,
'e'
,
'q'
,
'u'
,
'e'
,
'n'
,
'c'
,
'e'
,
'`'
,
' '
,
'>'
,
'='
,
' '
,
'%'
,
'i'
,
' '
,
'O'
,
'R'
,
'D'
,
'E'
,
'R'
,
' '
,
'B'
,
'Y'
,
' '
,
'`'
,
'D'
,
'i'
,
's'
,
'k'
,
'I'
,
'd'
,
'`'
,
0
};
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
file
->
Sequence
);
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
Sequence
);
if
(
!
row
)
{
TRACE
(
"Unable to query row
\n
"
);
...
...
@@ -815,7 +815,7 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
return
ERROR_FUNCTION_FAILED
;
}
UINT
ready_media
(
MSIPACKAGE
*
package
,
MSIFILE
*
file
,
MSIMEDIAINFO
*
mi
)
UINT
ready_media
(
MSIPACKAGE
*
package
,
UINT
Sequence
,
BOOL
IsCompressed
,
MSIMEDIAINFO
*
mi
)
{
UINT
rc
=
ERROR_SUCCESS
;
WCHAR
*
cabinet_file
;
...
...
@@ -831,7 +831,7 @@ UINT ready_media(MSIPACKAGE *package, MSIFILE *file, MSIMEDIAINFO *mi)
cabinet_file
=
get_cabinet_filename
(
mi
);
/* package should be downloaded */
if
(
file
->
IsCompressed
&&
if
(
IsCompressed
&&
GetFileAttributesW
(
cabinet_file
)
==
INVALID_FILE_ATTRIBUTES
&&
package
->
BaseURL
&&
UrlIsW
(
package
->
BaseURL
,
URLIS_URL
))
{
...
...
@@ -874,7 +874,7 @@ UINT ready_media(MSIPACKAGE *package, MSIFILE *file, MSIMEDIAINFO *mi)
}
}
if
(
file
->
IsCompressed
&&
if
(
IsCompressed
&&
GetFileAttributesW
(
cabinet_file
)
==
INVALID_FILE_ATTRIBUTES
)
{
rc
=
find_published_source
(
package
,
mi
);
...
...
dlls/msi/msipriv.h
View file @
18973df9
...
...
@@ -990,8 +990,8 @@ typedef struct
PVOID
user
;
}
MSICABDATA
;
extern
UINT
ready_media
(
MSIPACKAGE
*
package
,
MSIFILE
*
file
,
MSIMEDIAINFO
*
mi
);
extern
UINT
msi_load_media_info
(
MSIPACKAGE
*
package
,
MSIFILE
*
fil
e
,
MSIMEDIAINFO
*
mi
);
extern
UINT
ready_media
(
MSIPACKAGE
*
package
,
UINT
Sequence
,
BOOL
IsCompressed
,
MSIMEDIAINFO
*
mi
);
extern
UINT
msi_load_media_info
(
MSIPACKAGE
*
package
,
UINT
Sequenc
e
,
MSIMEDIAINFO
*
mi
);
extern
void
msi_free_media_info
(
MSIMEDIAINFO
*
mi
);
extern
BOOL
msi_cabextract
(
MSIPACKAGE
*
package
,
MSIMEDIAINFO
*
mi
,
LPVOID
data
);
...
...
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