mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
- Patch from Art Yerkes: return access violation on PAGE_NOACCESS memory.
svn path=/trunk/; revision=5857
This commit is contained in:
parent
238889e049
commit
5265ea1787
1 changed files with 3 additions and 3 deletions
|
@ -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: anonmem.c,v 1.19 2003/07/21 21:53:52 royce Exp $
|
||||
/* $Id: anonmem.c,v 1.20 2003/08/25 19:26:10 dwelch Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/mm/anonmem.c
|
||||
|
@ -277,9 +277,9 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
|
|||
Region = MmFindRegion(MemoryArea->BaseAddress,
|
||||
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
||||
Address, NULL);
|
||||
if (Region->Type == MEM_RESERVE)
|
||||
if (Region->Type == MEM_RESERVE || Region->Protect == PAGE_NOACCESS)
|
||||
{
|
||||
return(STATUS_UNSUCCESSFUL);
|
||||
return(STATUS_ACCESS_VIOLATION);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue