Commit in reactos/ntoskrnl/ldr on MAIN
loader.c+2-21.145 -> 1.146
- Fixed LdrLookupPageProtection.

reactos/ntoskrnl/ldr
loader.c 1.145 -> 1.146
diff -u -r1.145 -r1.146
--- loader.c	26 Sep 2004 15:07:44 -0000	1.145
+++ loader.c	28 Sep 2004 20:16:24 -0000	1.146
@@ -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 @@
    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))
CVSspam 0.2.8