Author: fireball
Date: Wed Dec 5 22:07:23 2007
New Revision: 31019
URL:
http://svn.reactos.org/svn/reactos?rev=31019&view=rev
Log:
- Fix a bug.
Modified:
trunk/reactos/ntoskrnl/config/cmalloc.c
Modified: trunk/reactos/ntoskrnl/config/cmalloc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmalloc.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmalloc.c (original)
+++ trunk/reactos/ntoskrnl/config/cmalloc.c Wed Dec 5 22:07:23 2007
@@ -88,7 +88,7 @@
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 +