mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 17:11:35 +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
|
@ -261,7 +261,7 @@ MmUnlockPages(IN PMDL Mdl)
|
||||||
if (Process)
|
if (Process)
|
||||||
{
|
{
|
||||||
/* Handle the accounting of locked pages */
|
/* Handle the accounting of locked pages */
|
||||||
/* ASSERT(Process->NumberOfLockedPages >= 0); */ // always true
|
ASSERT(Process->NumberOfLockedPages > 0);
|
||||||
InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages,
|
InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages,
|
||||||
-PageCount);
|
-PageCount);
|
||||||
}
|
}
|
||||||
|
@ -276,7 +276,7 @@ MmUnlockPages(IN PMDL Mdl)
|
||||||
if (Process)
|
if (Process)
|
||||||
{
|
{
|
||||||
/* Handle the accounting of locked pages */
|
/* Handle the accounting of locked pages */
|
||||||
/* ASSERT(Process->NumberOfLockedPages >= 0); */ // always true
|
ASSERT(Process->NumberOfLockedPages > 0);
|
||||||
InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages,
|
InterlockedExchangeAddSizeT(&Process->NumberOfLockedPages,
|
||||||
-PageCount);
|
-PageCount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue