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
7b7c9542
Commit
7b7c9542
authored
Aug 04, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Make sure the source directory has a trailing backslash.
parent
806e4071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
media.c
dlls/msi/media.c
+4
-0
No files found.
dlls/msi/media.c
View file @
7b7c9542
...
...
@@ -712,6 +712,7 @@ UINT msi_load_media_info(MSIPACKAGE *package, UINT Sequence, MSIMEDIAINFO *mi)
msi_set_sourcedir_props
(
package
,
FALSE
);
source_dir
=
msi_dup_property
(
package
->
db
,
szSourceDir
);
lstrcpyW
(
mi
->
sourcedir
,
source_dir
);
PathAddBackslashW
(
mi
->
sourcedir
);
mi
->
type
=
get_drive_type
(
source_dir
);
options
=
MSICODE_PRODUCT
;
...
...
@@ -797,6 +798,7 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
}
lstrcpyW
(
mi
->
sourcedir
,
volume
);
PathAddBackslashW
(
mi
->
sourcedir
);
TRACE
(
"Found network source %s
\n
"
,
debugstr_w
(
mi
->
sourcedir
));
return
ERROR_SUCCESS
;
}
...
...
@@ -827,6 +829,7 @@ static UINT find_published_source(MSIPACKAGE *package, MSIMEDIAINFO *mi)
{
/* FIXME: what about SourceDir */
lstrcpyW
(
mi
->
sourcedir
,
source
);
PathAddBackslashW
(
mi
->
sourcedir
);
TRACE
(
"Found disk source %s
\n
"
,
debugstr_w
(
mi
->
sourcedir
));
return
ERROR_SUCCESS
;
}
...
...
@@ -866,6 +869,7 @@ UINT ready_media(MSIPACKAGE *package, UINT Sequence, BOOL IsCompressed, MSIMEDIA
}
if
((
p
=
strrchrW
(
temppath
,
'\\'
)))
*
p
=
0
;
strcpyW
(
mi
->
sourcedir
,
temppath
);
PathAddBackslashW
(
mi
->
sourcedir
);
msi_free
(
mi
->
cabinet
);
mi
->
cabinet
=
strdupW
(
p
+
1
);
...
...
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