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
b851d465
Commit
b851d465
authored
Oct 27, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Avoid crashing if writeout_cabinet_stream fails.
parent
9375fd9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
files.c
dlls/msi/files.c
+8
-3
No files found.
dlls/msi/files.c
View file @
b851d465
...
...
@@ -490,11 +490,16 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
/* the stream does not contain the # character */
if
(
cab
[
0
]
==
'#'
)
{
LPWSTR
path
;
LPWSTR
path
,
p
;
rc
=
writeout_cabinet_stream
(
package
,
&
cab
[
1
],
mi
->
source
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
writeout_cabinet_stream
(
package
,
&
cab
[
1
],
mi
->
source
);
mi
->
last_path
=
strdupW
(
mi
->
source
);
*
(
strrchrW
(
mi
->
last_path
,
'\\'
)
+
1
)
=
0
;
p
=
strrchrW
(
mi
->
last_path
,
'\\'
);
if
(
p
)
p
[
1
]
=
0
;
path
=
msi_dup_property
(
package
,
cszSourceDir
);
...
...
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