From a4213d491d768be18c863dfba8ea57b2b38c87a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Wed, 1 Mar 2023 19:38:32 +0100 Subject: [PATCH] [NTOS:CM] Add surrounding parentheses to GET_HASH_INDEX definition --- ntoskrnl/include/internal/cm_x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/include/internal/cm_x.h b/ntoskrnl/include/internal/cm_x.h index 373700b8086..b9e561952c3 100644 --- a/ntoskrnl/include/internal/cm_x.h +++ b/ntoskrnl/include/internal/cm_x.h @@ -16,7 +16,7 @@ // Returns the index into the hash table, or the entry itself // #define GET_HASH_INDEX(ConvKey) \ - GET_HASH_KEY(ConvKey) % CmpHashTableSize + (GET_HASH_KEY(ConvKey) % CmpHashTableSize) #define GET_HASH_ENTRY(Table, ConvKey) \ (&Table[GET_HASH_INDEX(ConvKey)]) #define ASSERT_VALID_HASH(h) \