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
39d6b6eb
Commit
39d6b6eb
authored
Sep 20, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle fdintNEXT_CABINET and fdintPARTIAL_FILE for cabinet streams.
parent
d7337031
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
media.c
dlls/msi/media.c
+40
-0
No files found.
dlls/msi/media.c
View file @
39d6b6eb
...
@@ -358,6 +358,40 @@ done:
...
@@ -358,6 +358,40 @@ done:
return
res
;
return
res
;
}
}
static
INT_PTR
cabinet_next_cabinet_stream
(
FDINOTIFICATIONTYPE
fdint
,
PFDINOTIFICATION
pfdin
)
{
MSICABDATA
*
data
=
pfdin
->
pv
;
MSIMEDIAINFO
*
mi
=
data
->
mi
;
UINT
rc
;
msi_free
(
mi
->
disk_prompt
);
msi_free
(
mi
->
cabinet
);
msi_free
(
mi
->
volume_label
);
mi
->
disk_prompt
=
NULL
;
mi
->
cabinet
=
NULL
;
mi
->
volume_label
=
NULL
;
mi
->
disk_id
++
;
mi
->
is_continuous
=
TRUE
;
rc
=
msi_media_get_disk_info
(
data
->
package
,
mi
);
if
(
rc
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to get next cabinet information: %u
\n
"
,
rc
);
return
-
1
;
}
msi_free
(
cab_stream
.
name
);
cab_stream
.
name
=
encode_streamname
(
FALSE
,
mi
->
cabinet
+
1
);
if
(
!
cab_stream
.
name
)
return
-
1
;
TRACE
(
"next cabinet is %s
\n
"
,
debugstr_w
(
mi
->
cabinet
));
return
0
;
}
static
INT_PTR
cabinet_copy_file
(
FDINOTIFICATIONTYPE
fdint
,
static
INT_PTR
cabinet_copy_file
(
FDINOTIFICATIONTYPE
fdint
,
PFDINOTIFICATION
pfdin
)
PFDINOTIFICATION
pfdin
)
{
{
...
@@ -494,6 +528,12 @@ static INT_PTR CDECL cabinet_notify_stream( FDINOTIFICATIONTYPE fdint, PFDINOTIF
...
@@ -494,6 +528,12 @@ static INT_PTR CDECL cabinet_notify_stream( FDINOTIFICATIONTYPE fdint, PFDINOTIF
{
{
switch
(
fdint
)
switch
(
fdint
)
{
{
case
fdintPARTIAL_FILE
:
return
cabinet_partial_file
(
fdint
,
pfdin
);
case
fdintNEXT_CABINET
:
return
cabinet_next_cabinet_stream
(
fdint
,
pfdin
);
case
fdintCOPY_FILE
:
case
fdintCOPY_FILE
:
return
cabinet_copy_file
(
fdint
,
pfdin
);
return
cabinet_copy_file
(
fdint
,
pfdin
);
...
...
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