mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:CM] Use COMPUTE_HASH_CHAR to compute the conv hash key
We have a dedicated macro definition for that so just use it.
This commit is contained in:
parent
34066e475a
commit
50f367fa58
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ CmpGetNameControlBlock(IN PUNICODE_STRING NodeName)
|
|||
if (*p != OBJ_NAME_PATH_SEPARATOR)
|
||||
{
|
||||
/* Add it to the hash */
|
||||
ConvKey = 37 * ConvKey + RtlUpcaseUnicodeChar(*p);
|
||||
ConvKey = COMPUTE_HASH_CHAR(ConvKey, *p);
|
||||
}
|
||||
|
||||
/* Next character */
|
||||
|
@ -701,7 +701,7 @@ CmpCreateKeyControlBlock(IN PHHIVE Hive,
|
|||
if (*p != OBJ_NAME_PATH_SEPARATOR)
|
||||
{
|
||||
/* Add this key to the hash */
|
||||
ConvKey = 37 * ConvKey + RtlUpcaseUnicodeChar(*p);
|
||||
ConvKey = COMPUTE_HASH_CHAR(ConvKey, *p);
|
||||
}
|
||||
|
||||
/* Move on */
|
||||
|
|
Loading…
Reference in a new issue