[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:
George Bișoc 2023-10-03 11:01:21 +02:00
parent 34066e475a
commit 50f367fa58
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -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 */