mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
* Fixed the length for the page protection.
svn path=/trunk/; revision=3713
This commit is contained in:
parent
8e4b80043b
commit
a794750da6
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: loader.c,v 1.124 2002/10/30 19:53:20 ekohl Exp $
|
||||
/* $Id: loader.c,v 1.125 2002/11/05 21:01:38 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -1115,7 +1115,7 @@ LdrPEProcessModule(PVOID ModuleLoadBase,
|
|||
Characteristics & IMAGE_SECTION_CHAR_DATA ||
|
||||
Characteristics & IMAGE_SECTION_CHAR_BSS))
|
||||
{
|
||||
for (i = 0; i < PAGE_ROUND_DOWN(Length) / PAGE_SIZE; i++)
|
||||
for (i = 0; i < PAGE_ROUND_UP(Length) / PAGE_SIZE; i++)
|
||||
{
|
||||
MmSetPageProtect(NULL, BaseAddress + (i * PAGE_SIZE),
|
||||
PAGE_READONLY);
|
||||
|
|
Loading…
Reference in a new issue