mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 11:48:03 +00:00
- 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:
parent
4bbc945c9c
commit
02c974661f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue