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
b012c336
Commit
b012c336
authored
Jan 05, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Directly download mi->source now that SourceDir points to the URL.
parent
18648766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
37 deletions
+5
-37
files.c
dlls/msi/files.c
+5
-37
No files found.
dlls/msi/files.c
View file @
b012c336
...
...
@@ -500,42 +500,6 @@ static void free_media_info( struct media_info *mi )
msi_free
(
mi
);
}
static
UINT
download_remote_cabinet
(
MSIPACKAGE
*
package
,
struct
media_info
*
mi
)
{
WCHAR
temppath
[
MAX_PATH
];
LPWSTR
src
,
ptr
;
LPCWSTR
cab
;
src
=
strdupW
(
package
->
BaseURL
);
if
(
!
src
)
return
ERROR_OUTOFMEMORY
;
ptr
=
strrchrW
(
src
,
'/'
);
if
(
!
ptr
)
{
msi_free
(
src
);
return
ERROR_FUNCTION_FAILED
;
}
*
(
ptr
+
1
)
=
'\0'
;
ptr
=
strrchrW
(
mi
->
source
,
'\\'
);
if
(
!
ptr
)
ptr
=
mi
->
source
;
src
=
msi_realloc
(
src
,
(
lstrlenW
(
src
)
+
lstrlenW
(
ptr
))
*
sizeof
(
WCHAR
));
if
(
!
src
)
return
ERROR_OUTOFMEMORY
;
lstrcatW
(
src
,
ptr
+
1
);
temppath
[
0
]
=
'\0'
;
cab
=
msi_download_file
(
src
,
temppath
);
lstrcpyW
(
mi
->
source
,
cab
);
msi_free
(
src
);
return
ERROR_SUCCESS
;
}
static
UINT
load_media_info
(
MSIPACKAGE
*
package
,
MSIFILE
*
file
,
struct
media_info
*
mi
)
{
MSIRECORD
*
row
;
...
...
@@ -625,7 +589,11 @@ static UINT ready_media(MSIPACKAGE *package, MSIFILE *file, struct media_info *m
GetFileAttributesW
(
mi
->
source
)
==
INVALID_FILE_ATTRIBUTES
&&
package
->
BaseURL
&&
UrlIsW
(
package
->
BaseURL
,
URLIS_URL
))
{
return
download_remote_cabinet
(
package
,
mi
);
WCHAR
temppath
[
MAX_PATH
];
msi_download_file
(
mi
->
source
,
temppath
);
lstrcpyW
(
mi
->
source
,
temppath
);
return
ERROR_SUCCESS
;
}
/* check volume matches, change media if not */
...
...
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