mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Fix from art: use the region protection for faulted in pages.
svn path=/trunk/; revision=5925
This commit is contained in:
parent
eebe1ed001
commit
88cdb96043
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.20 2003/08/25 19:26:10 dwelch Exp $
|
||||
/* $Id: anonmem.c,v 1.21 2003/08/29 21:23:06 dwelch Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/mm/anonmem.c
|
||||
|
@ -391,7 +391,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
|
|||
*/
|
||||
Status = MmCreateVirtualMapping(MemoryArea->Process,
|
||||
(PVOID)PAGE_ROUND_DOWN(Address),
|
||||
MemoryArea->Attributes,
|
||||
Region->Protect,
|
||||
Page,
|
||||
FALSE);
|
||||
while (Status == STATUS_NO_MEMORY)
|
||||
|
@ -399,7 +399,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
|
|||
MmUnlockAddressSpace(AddressSpace);
|
||||
Status = MmCreateVirtualMapping(MemoryArea->Process,
|
||||
Address,
|
||||
MemoryArea->Attributes,
|
||||
Region->Protect,
|
||||
Page,
|
||||
TRUE);
|
||||
MmLockAddressSpace(AddressSpace);
|
||||
|
|
Loading…
Reference in a new issue