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
2c20c35d
Commit
2c20c35d
authored
Jun 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Avoid a crash when the cabinet file must be downloaded.
Fixes a regression caused by
e5869d5d
.
parent
d22e3e43
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
media.c
dlls/msi/media.c
+8
-4
No files found.
dlls/msi/media.c
View file @
2c20c35d
...
...
@@ -785,13 +785,17 @@ UINT ready_media(MSIPACKAGE *package, MSIFILE *file, MSIMEDIAINFO *mi)
{
WCHAR
temppath
[
MAX_PATH
],
*
p
;
msi_download_file
(
cabinet_file
,
temppath
);
rc
=
msi_download_file
(
cabinet_file
,
temppath
);
if
(
rc
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to download %s (%u)
\n
"
,
debugstr_w
(
cabinet_file
),
rc
);
msi_free
(
cabinet_file
);
return
rc
;
}
if
((
p
=
strrchrW
(
temppath
,
'\\'
)))
*
p
=
0
;
msi_free
(
mi
->
sourcedir
);
strcpyW
(
mi
->
sourcedir
,
temppath
);
msi_free
(
mi
->
cabinet
);
strcpyW
(
mi
->
cabinet
,
p
+
1
);
mi
->
cabinet
=
strdupW
(
p
+
1
);
msi_free
(
cabinet_file
);
return
ERROR_SUCCESS
;
...
...
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