From 46cef7fc9bf1e7125a546781a319f81fbc0066bf Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 18 Feb 2002 18:41:23 +0000 Subject: [PATCH] Fixed the 'Frequent Crasher Bug'. svn path=/trunk/; revision=2631 --- reactos/ntoskrnl/mm/pageop.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/mm/pageop.c b/reactos/ntoskrnl/mm/pageop.c index 6c82efd971f..5782eaa5c1a 100644 --- a/reactos/ntoskrnl/mm/pageop.c +++ b/reactos/ntoskrnl/mm/pageop.c @@ -1,4 +1,4 @@ -/* $Id: pageop.c,v 1.6 2002/01/09 03:00:21 dwelch Exp $ +/* $Id: pageop.c,v 1.7 2002/02/18 18:41:23 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -53,10 +53,9 @@ MmReleasePageOp(PMM_PAGEOP PageOp) ExFreePool(PageOp); return; } - PrevPageOp = PrevPageOp->Next; - while (PrevPageOp != NULL) + while (PrevPageOp->Next != NULL) { - if (PrevPageOp == PageOp) + if (PrevPageOp->Next == PageOp) { PrevPageOp->Next = PageOp->Next; KeReleaseSpinLock(&MmPageOpHashTableLock, oldIrql);