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
477702c8
Commit
477702c8
authored
Mar 10, 2011
by
David Hedberg
Committed by
Alexandre Julliard
Mar 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check other sources if install media not present at last used location.
parent
599b3083
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
12 deletions
+33
-12
media.c
dlls/msi/media.c
+33
-12
No files found.
dlls/msi/media.c
View file @
477702c8
...
...
@@ -748,23 +748,44 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
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
)
WCHAR
cabinet_file
[
MAX_PATH
];
BOOL
check_all
=
FALSE
;
while
(
TRUE
)
{
if
(
!
strncmpiW
(
source
,
volume
,
strlenW
(
source
)))
index
=
0
;
volumesz
=
MAX_PATH
;
while
(
MsiSourceListEnumSourcesW
(
package
->
ProductCode
,
NULL
,
package
->
Context
,
MSISOURCETYPE_NETWORK
,
index
++
,
volume
,
&
volumesz
)
==
ERROR_SUCCESS
)
{
lstrcpyW
(
mi
->
sourcedir
,
source
);
TRACE
(
"Found network source %s
\n
"
,
debugstr_w
(
mi
->
sourcedir
));
return
ERROR_SUCCESS
;
if
(
check_all
||
!
strncmpiW
(
source
,
volume
,
strlenW
(
source
)))
{
lstrcpyW
(
cabinet_file
,
volume
);
PathAddBackslashW
(
cabinet_file
);
lstrcatW
(
cabinet_file
,
mi
->
cabinet
);
if
(
GetFileAttributesW
(
cabinet_file
)
==
INVALID_FILE_ATTRIBUTES
)
{
volumesz
=
MAX_PATH
;
if
(
!
check_all
)
break
;
continue
;
}
lstrcpyW
(
mi
->
sourcedir
,
volume
);
TRACE
(
"Found network source %s
\n
"
,
debugstr_w
(
mi
->
sourcedir
));
return
ERROR_SUCCESS
;
}
}
if
(
!
check_all
)
check_all
=
TRUE
;
else
break
;
}
}
...
...
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