https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ae756a4e5a70fc4cff60c935fcb90f3d9ebede2

commit 2ae756a4e5a70fc4cff60c935fcb90f3d9ebede2
Author:     Thomas Faber <[email protected]>
AuthorDate: Tue Jan 16 22:10:22 2018 +0100
Commit:     Thomas Faber <[email protected]>
CommitDate: Tue Jan 16 22:29:19 2018 +0100

    [NTOS:MM] Fix broken ASSERT. CID 701285
---
 ntoskrnl/mm/ARM3/virtual.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/mm/ARM3/virtual.c b/ntoskrnl/mm/ARM3/virtual.c
index bbc773a919..97f017f326 100644
--- a/ntoskrnl/mm/ARM3/virtual.c
+++ b/ntoskrnl/mm/ARM3/virtual.c
@@ -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

Reply via email to