From 50f367fa581d1d551f0f299fdc5850f2f3c8eb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Tue, 3 Oct 2023 11:01:21 +0200 Subject: [PATCH] [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 */