diff --git a/reactos/tools/mkhive/cmi.c b/reactos/tools/mkhive/cmi.c index e6ff531913a..b95f60c5c15 100644 --- a/reactos/tools/mkhive/cmi.c +++ b/reactos/tools/mkhive/cmi.c @@ -176,7 +176,7 @@ CmiAddKeyToHashTable( { RtlMoveMemory(HashCell->List + i + 1, HashCell->List + i, - (HashCell->Count - 1 - i) * + (HashCell->Count - i) * sizeof(HashCell->List[0])); }