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
6e0a5b81
Commit
6e0a5b81
authored
May 07, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae849579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
registry.c
dlls/advapi32/registry.c
+2
-2
No files found.
dlls/advapi32/registry.c
View file @
6e0a5b81
...
...
@@ -108,7 +108,7 @@ static BOOL is_wow6432node( const UNICODE_STRING *name )
static
const
WCHAR
wow6432nodeW
[]
=
{
'W'
,
'o'
,
'w'
,
'6'
,
'4'
,
'3'
,
'2'
,
'N'
,
'o'
,
'd'
,
'e'
};
return
(
name
->
Length
==
sizeof
(
wow6432nodeW
)
&&
!
memicmp
W
(
name
->
Buffer
,
wow6432nodeW
,
ARRAY_SIZE
(
wow6432nodeW
)));
!
strncmpi
W
(
name
->
Buffer
,
wow6432nodeW
,
ARRAY_SIZE
(
wow6432nodeW
)));
}
/* open the Wow6432Node subkey of the specified key */
...
...
@@ -149,7 +149,7 @@ static NTSTATUS create_key( HKEY *retkey, ACCESS_MASK access, OBJECT_ATTRIBUTES
/* don't try to create registry root */
if
(
!
attr
->
RootDirectory
&&
len
>
ARRAY_SIZE
(
registry_root
)
&&
!
memicmp
W
(
buffer
,
registry_root
,
ARRAY_SIZE
(
registry_root
)))
!
strncmpi
W
(
buffer
,
registry_root
,
ARRAY_SIZE
(
registry_root
)))
i
+=
ARRAY_SIZE
(
registry_root
);
while
(
i
<
len
&&
buffer
[
i
]
!=
'\\'
)
i
++
;
...
...
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