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
38b1a1af
Commit
38b1a1af
authored
May 07, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cae33247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+2
-2
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
38b1a1af
...
...
@@ -132,14 +132,14 @@ static BOOL matching_mount_point( const struct mount_point *mount, const MOUNTMG
{
const
WCHAR
*
name
=
(
const
WCHAR
*
)((
const
char
*
)
spec
+
spec
->
SymbolicLinkNameOffset
);
if
(
spec
->
SymbolicLinkNameLength
!=
mount
->
link
.
Length
)
return
FALSE
;
if
(
memicmp
W
(
name
,
mount
->
link
.
Buffer
,
mount
->
link
.
Length
/
sizeof
(
WCHAR
)))
if
(
strncmpi
W
(
name
,
mount
->
link
.
Buffer
,
mount
->
link
.
Length
/
sizeof
(
WCHAR
)))
return
FALSE
;
}
if
(
spec
->
DeviceNameOffset
)
{
const
WCHAR
*
name
=
(
const
WCHAR
*
)((
const
char
*
)
spec
+
spec
->
DeviceNameOffset
);
if
(
spec
->
DeviceNameLength
!=
mount
->
name
.
Length
)
return
FALSE
;
if
(
memicmp
W
(
name
,
mount
->
name
.
Buffer
,
mount
->
name
.
Length
/
sizeof
(
WCHAR
)))
if
(
strncmpi
W
(
name
,
mount
->
name
.
Buffer
,
mount
->
name
.
Length
/
sizeof
(
WCHAR
)))
return
FALSE
;
}
if
(
spec
->
UniqueIdOffset
)
...
...
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