From 02c974661fdfb7349c884e493deb6b7689903320 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 30 May 2004 12:55:11 +0000 Subject: [PATCH] - Fixed a wrong address in MmAlterViewAttributes which possible does cause a crash if the region is longer than one page. svn path=/trunk/; revision=9558 --- reactos/ntoskrnl/mm/section.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index efb0ee38204..953a032a015 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: section.c,v 1.149 2004/05/01 17:11:34 tamlin Exp $ +/* $Id: section.c,v 1.150 2004/05/30 12:55:11 hbirr Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/section.c @@ -1978,7 +1978,7 @@ MmAlterViewAttributes(PMADDRESS_SPACE AddressSpace, if (MmIsPagePresent(AddressSpace->Process, Address)) { - MmSetPageProtect(AddressSpace->Process, BaseAddress, + MmSetPageProtect(AddressSpace->Process, Address, Protect); } }