[NTOS:MM] Fix broken ASSERT. CID 701285

This commit is contained in:
Thomas Faber 2018-01-16 22:10:22 +01:00
parent 71e66c69c1
commit 2ae756a4e5

View file

@ -5490,8 +5490,8 @@ FinalPath:
AlreadyDecommitted;
ASSERT(CommitReduction >= 0);
ASSERT(Vad->u.VadFlags.CommitCharge >= CommitReduction);
Vad->u.VadFlags.CommitCharge -= CommitReduction;
ASSERT(Vad->u.VadFlags.CommitCharge >= 0);
//
// We are done, go to the exit path without freeing the VAD as it remains