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
3f7312fd
Commit
3f7312fd
authored
May 06, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
May 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Clone an open stream if possible in cabinet_open_stream.
parent
4f9971f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
media.c
dlls/msi/media.c
+9
-5
No files found.
dlls/msi/media.c
View file @
3f7312fd
...
...
@@ -235,13 +235,17 @@ static INT_PTR CDECL cabinet_open_stream( char *pszFile, int oflag, int pmode )
WARN
(
"failed to encode stream name
\n
"
);
return
0
;
}
hr
=
IStorage_OpenStream
(
cab
->
storage
,
encoded
,
NULL
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stream
);
msi_free
(
encoded
);
if
(
FAILED
(
hr
))
if
(
msi_clone_open_stream
(
package_disk
.
package
->
db
,
cab
->
storage
,
encoded
,
&
stream
)
!=
ERROR_SUCCESS
)
{
WARN
(
"failed to open stream 0x%08x
\n
"
,
hr
);
return
0
;
hr
=
IStorage_OpenStream
(
cab
->
storage
,
encoded
,
NULL
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stream
);
msi_free
(
encoded
);
if
(
FAILED
(
hr
))
{
WARN
(
"failed to open stream 0x%08x
\n
"
,
hr
);
return
0
;
}
}
msi_free
(
encoded
);
return
(
INT_PTR
)
stream
;
}
...
...
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