mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +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:
parent
d61a6ea982
commit
6a56dca9a3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue