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
1d453a1f
Commit
1d453a1f
authored
Mar 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Search network sources in addition to disk sources.
parent
faf750f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
media.c
dlls/msi/media.c
+31
-1
No files found.
dlls/msi/media.c
View file @
1d453a1f
...
...
@@ -686,7 +686,7 @@ static UINT msi_load_media_info(MSIPACKAGE *package, MSIFILE *file, MSIMEDIAINFO
return
ERROR_SUCCESS
;
}
/* FIXME: search
NETWORK and
URL sources as well */
/* FIXME: search URL sources as well */
static
UINT
find_published_source
(
MSIPACKAGE
*
package
,
MSIMEDIAINFO
*
mi
)
{
WCHAR
source
[
MAX_PATH
];
...
...
@@ -694,8 +694,16 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
WCHAR
prompt
[
MAX_PATH
];
DWORD
volumesz
,
promptsz
;
DWORD
index
,
size
,
id
;
WCHAR
last_type
[
2
];
UINT
r
;
size
=
2
;
r
=
MsiSourceListGetInfoW
(
package
->
ProductCode
,
NULL
,
package
->
Context
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_LASTUSEDTYPEW
,
last_type
,
&
size
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
size
=
MAX_PATH
;
r
=
MsiSourceListGetInfoW
(
package
->
ProductCode
,
NULL
,
package
->
Context
,
MSICODE_PRODUCT
,
...
...
@@ -706,6 +714,27 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
index
=
0
;
volumesz
=
MAX_PATH
;
promptsz
=
MAX_PATH
;
if
(
last_type
[
0
]
==
'n'
)
{
while
(
MsiSourceListEnumSourcesW
(
package
->
ProductCode
,
NULL
,
package
->
Context
,
MSISOURCETYPE_NETWORK
,
index
++
,
volume
,
&
volumesz
)
==
ERROR_SUCCESS
)
{
if
(
!
strncmpiW
(
source
,
volume
,
strlenW
(
source
)))
{
lstrcpyW
(
mi
->
source
,
source
);
lstrcatW
(
mi
->
source
,
mi
->
cabinet
);
TRACE
(
"Found network source %s
\n
"
,
debugstr_w
(
mi
->
source
));
return
ERROR_SUCCESS
;
}
}
}
index
=
0
;
volumesz
=
MAX_PATH
;
promptsz
=
MAX_PATH
;
while
(
MsiSourceListEnumMediaDisksW
(
package
->
ProductCode
,
NULL
,
package
->
Context
,
MSICODE_PRODUCT
,
index
++
,
&
id
,
...
...
@@ -721,6 +750,7 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
{
/* FIXME: what about SourceDir */
lstrcpyW
(
mi
->
source
,
source
);
TRACE
(
"Found disk source %s
\n
"
,
debugstr_w
(
mi
->
source
));
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