- Fix 37825 -- Yes, we shouldn't check if an unsigned value is larger than or equal to zero, so just fix the check instead of...commenting out the assertion.

svn path=/trunk/; revision=39829
This commit is contained in:
Stefan Ginsberg 2009-03-01 15:35:31 +00:00
parent d61a6ea982
commit 6a56dca9a3

View file

@ -261,7 +261,7 @@ MmUnlockPages(IN PMDL Mdl)
if (Process)
{
/* Handle the accounting of locked pages */
/* ASSERT(Process->NumberOfLockedPages >= 0); */ // always true
ASSERT(Process->NumberOfLockedPages > 0);
InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages,
-PageCount);
}
@ -276,7 +276,7 @@ MmUnlockPages(IN PMDL Mdl)
if (Process)
{
/* Handle the accounting of locked pages */
/* ASSERT(Process->NumberOfLockedPages >= 0); */ // always true
ASSERT(Process->NumberOfLockedPages > 0);
InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages,
-PageCount);
}