- 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
This commit is contained in:
Hartmut Birr 2004-05-30 12:55:11 +00:00
parent 4bbc945c9c
commit 02c974661f

View file

@ -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);
}
}