From 8ceb672cc0bf449ab249f2bb1a288e24c341027b Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 28 Sep 2004 20:16:24 +0000 Subject: [PATCH] - Fixed LdrLookupPageProtection. svn path=/trunk/; revision=11111 --- reactos/ntoskrnl/ldr/loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ldr/loader.c b/reactos/ntoskrnl/ldr/loader.c index e26ef050496..8474eeb08cb 100644 --- a/reactos/ntoskrnl/ldr/loader.c +++ b/reactos/ntoskrnl/ldr/loader.c @@ -1,4 +1,4 @@ -/* $Id: loader.c,v 1.145 2004/09/26 15:07:44 hbirr Exp $ +/* $Id: loader.c,v 1.146 2004/09/28 20:16:24 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -666,7 +666,7 @@ LdrLookupPageProtection(PVOID PageStart, ULONG Length; PVOID BaseAddress; - for (Idx = 0; Idx < PEFileHeader->NumberOfSections && !Write && !Execute; Idx++) + for (Idx = 0; Idx < PEFileHeader->NumberOfSections; Idx++) { Characteristics = PESectionHeaders[Idx].Characteristics; if (!(Characteristics & IMAGE_SECTION_NOLOAD))