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
89693776
Commit
89693776
authored
Apr 16, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Perform a suffix match on the volume name.
parent
20c3c09f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
media.c
dlls/msi/media.c
+10
-3
No files found.
dlls/msi/media.c
View file @
89693776
...
...
@@ -54,8 +54,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi);
static
BOOL
source_matches_volume
(
MSIMEDIAINFO
*
mi
,
LPCWSTR
source_root
)
{
WCHAR
volume_name
[
MAX_PATH
+
1
];
WCHAR
root
[
MAX_PATH
+
1
];
WCHAR
volume_name
[
MAX_PATH
+
1
],
root
[
MAX_PATH
+
1
];
const
WCHAR
*
p
;
int
len
,
len2
;
strcpyW
(
root
,
source_root
);
PathStripToRootW
(
root
);
...
...
@@ -66,7 +67,13 @@ static BOOL source_matches_volume(MSIMEDIAINFO *mi, LPCWSTR source_root)
WARN
(
"failed to get volume information for %s (%u)
\n
"
,
debugstr_w
(
root
),
GetLastError
());
return
FALSE
;
}
return
!
strcmpiW
(
mi
->
volume_label
,
volume_name
);
len
=
strlenW
(
volume_name
);
len2
=
strlenW
(
mi
->
volume_label
);
if
(
len2
>
len
)
return
FALSE
;
p
=
volume_name
+
len
-
len2
;
return
!
strcmpiW
(
mi
->
volume_label
,
p
);
}
static
UINT
msi_change_media
(
MSIPACKAGE
*
package
,
MSIMEDIAINFO
*
mi
)
...
...
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