advapi32: Use strncmpiW instead of memicmpW for strings without embedded nulls.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-05-07 11:30:29 -05:00
parent ae84957916
commit 6e0a5b81a4
1 changed files with 2 additions and 2 deletions

View File

@ -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) &&
!memicmpW( name->Buffer, wow6432nodeW, ARRAY_SIZE( wow6432nodeW )));
!strncmpiW( 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 ) &&
!memicmpW( buffer, registry_root, ARRAY_SIZE( registry_root )))
!strncmpiW( buffer, registry_root, ARRAY_SIZE( registry_root )))
i += ARRAY_SIZE( registry_root );
while (i < len && buffer[i] != '\\') i++;