https://git.reactos.org/?p=reactos.git;a=commitdiff;h=50f367fa581d1d551f0f2…
commit 50f367fa581d1d551f0f299fdc5850f2f3c8eb19
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Tue Oct 3 11:01:21 2023 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Tue Oct 3 11:01:21 2023 +0200
[NTOS:CM] Use COMPUTE_HASH_CHAR to compute the conv hash key
We have a dedicated macro definition for that so just use it.
---
ntoskrnl/config/cmkcbncb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/config/cmkcbncb.c b/ntoskrnl/config/cmkcbncb.c
index 9a69479c4b0..b7b7b0ef9cb 100644
--- a/ntoskrnl/config/cmkcbncb.c
+++ b/ntoskrnl/config/cmkcbncb.c
@@ -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 */