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
d685bfa5
Commit
d685bfa5
authored
Apr 18, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Move msi_get_cabinet_stream() up and make it static.
parent
d69dd163
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
media.c
dlls/msi/media.c
+11
-11
msipriv.h
dlls/msi/msipriv.h
+0
-1
No files found.
dlls/msi/media.c
View file @
d685bfa5
...
@@ -117,6 +117,17 @@ static UINT msi_change_media(MSIPACKAGE *package, MSIMEDIAINFO *mi)
...
@@ -117,6 +117,17 @@ static UINT msi_change_media(MSIPACKAGE *package, MSIMEDIAINFO *mi)
return
r
;
return
r
;
}
}
static
MSICABINETSTREAM
*
msi_get_cabinet_stream
(
MSIPACKAGE
*
package
,
UINT
disk_id
)
{
MSICABINETSTREAM
*
cab
;
LIST_FOR_EACH_ENTRY
(
cab
,
&
package
->
cabinet_streams
,
MSICABINETSTREAM
,
entry
)
{
if
(
cab
->
disk_id
==
disk_id
)
return
cab
;
}
return
NULL
;
}
static
void
*
CDECL
cabinet_alloc
(
ULONG
cb
)
static
void
*
CDECL
cabinet_alloc
(
ULONG
cb
)
{
{
return
msi_alloc
(
cb
);
return
msi_alloc
(
cb
);
...
@@ -919,14 +930,3 @@ UINT msi_add_cabinet_stream( MSIPACKAGE *package, UINT disk_id, IStorage *storag
...
@@ -919,14 +930,3 @@ UINT msi_add_cabinet_stream( MSIPACKAGE *package, UINT disk_id, IStorage *storag
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
MSICABINETSTREAM
*
msi_get_cabinet_stream
(
MSIPACKAGE
*
package
,
UINT
disk_id
)
{
MSICABINETSTREAM
*
cab
;
LIST_FOR_EACH_ENTRY
(
cab
,
&
package
->
cabinet_streams
,
MSICABINETSTREAM
,
entry
)
{
if
(
cab
->
disk_id
==
disk_id
)
return
cab
;
}
return
NULL
;
}
dlls/msi/msipriv.h
View file @
d685bfa5
...
@@ -1018,7 +1018,6 @@ extern UINT ready_media(MSIPACKAGE *package, UINT Sequence, BOOL IsCompressed, M
...
@@ -1018,7 +1018,6 @@ extern UINT ready_media(MSIPACKAGE *package, UINT Sequence, BOOL IsCompressed, M
extern
UINT
msi_load_media_info
(
MSIPACKAGE
*
package
,
UINT
Sequence
,
MSIMEDIAINFO
*
mi
);
extern
UINT
msi_load_media_info
(
MSIPACKAGE
*
package
,
UINT
Sequence
,
MSIMEDIAINFO
*
mi
);
extern
void
msi_free_media_info
(
MSIMEDIAINFO
*
mi
);
extern
void
msi_free_media_info
(
MSIMEDIAINFO
*
mi
);
extern
BOOL
msi_cabextract
(
MSIPACKAGE
*
package
,
MSIMEDIAINFO
*
mi
,
LPVOID
data
);
extern
BOOL
msi_cabextract
(
MSIPACKAGE
*
package
,
MSIMEDIAINFO
*
mi
,
LPVOID
data
);
extern
MSICABINETSTREAM
*
msi_get_cabinet_stream
(
MSIPACKAGE
*
,
UINT
);
extern
UINT
msi_add_cabinet_stream
(
MSIPACKAGE
*
,
UINT
,
IStorage
*
,
const
WCHAR
*
);
extern
UINT
msi_add_cabinet_stream
(
MSIPACKAGE
*
,
UINT
,
IStorage
*
,
const
WCHAR
*
);
/* control event stuff */
/* control event stuff */
...
...
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