- Fix a bug.

svn path=/trunk/; revision=31019
This commit is contained in:
Aleksey Bragin 2007-12-05 19:07:23 +00:00
parent 79e182b387
commit 99d3788d8b

View file

@ -88,7 +88,7 @@ CmpFreeKeyControlBlock(IN PCM_KEY_CONTROL_BLOCK Kcb)
if (++AllocPage->FreeCount == CM_KCBS_PER_PAGE)
{
/* Loop all the entries */
for (i = CM_KCBS_PER_PAGE; i; i--)
for (i = CM_KCBS_PER_PAGE - 1; i; i--)
{
/* Get the KCB */
Kcb = (PVOID)((ULONG_PTR)AllocPage +