mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user