Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
59e1d114
Commit
59e1d114
authored
May 07, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70441899
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
file.c
dlls/kernel32/file.c
+1
-1
process.c
dlls/kernel32/process.c
+1
-1
volume.c
dlls/kernel32/volume.c
+1
-1
No files found.
dlls/kernel32/file.c
View file @
59e1d114
...
...
@@ -1521,7 +1521,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
static
const
WCHAR
conW
[]
=
{
'C'
,
'O'
,
'N'
};
if
(
LOWORD
(
dosdev
)
==
sizeof
(
conW
)
&&
!
memicmp
W
(
filename
+
HIWORD
(
dosdev
)
/
sizeof
(
WCHAR
),
conW
,
ARRAY_SIZE
(
conW
)))
!
strncmpi
W
(
filename
+
HIWORD
(
dosdev
)
/
sizeof
(
WCHAR
),
conW
,
ARRAY_SIZE
(
conW
)))
{
switch
(
access
&
(
GENERIC_READ
|
GENERIC_WRITE
))
{
...
...
dlls/kernel32/process.c
View file @
59e1d114
...
...
@@ -550,7 +550,7 @@ static void set_registry_variables( HANDLE hkey, ULONG type )
}
/* PATH is magic */
if
(
env_name
.
Length
==
sizeof
(
pathW
)
&&
!
memicmp
W
(
env_name
.
Buffer
,
pathW
,
ARRAY_SIZE
(
pathW
))
&&
!
strncmpi
W
(
env_name
.
Buffer
,
pathW
,
ARRAY_SIZE
(
pathW
))
&&
!
RtlQueryEnvironmentVariable_U
(
NULL
,
&
env_name
,
&
tmp
))
{
RtlAppendUnicodeToString
(
&
tmp
,
sep
);
...
...
dlls/kernel32/volume.c
View file @
59e1d114
...
...
@@ -1942,7 +1942,7 @@ BOOL WINAPI GetVolumePathNamesForVolumeNameW(LPCWSTR volumename, LPWSTR volumepa
linkname
=
(
const
WCHAR
*
)((
const
char
*
)
link
+
link
->
MountPoints
[
j
].
SymbolicLinkNameOffset
);
if
(
link
->
MountPoints
[
j
].
SymbolicLinkNameLength
==
sizeof
(
dosdevicesW
)
+
2
*
sizeof
(
WCHAR
)
&&
!
memicmp
W
(
linkname
,
dosdevicesW
,
ARRAY_SIZE
(
dosdevicesW
)))
!
strncmpi
W
(
linkname
,
dosdevicesW
,
ARRAY_SIZE
(
dosdevicesW
)))
{
len
+=
4
;
if
(
volumepathname
&&
len
<
buflen
)
...
...
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