- Fixed the searching for uninitialized (like .bss) segments.
Modified: trunk/reactos/ntoskrnl/ldr/loader.c

Modified: trunk/reactos/ntoskrnl/ldr/loader.c
--- trunk/reactos/ntoskrnl/ldr/loader.c	2005-01-03 11:25:40 UTC (rev 12752)
+++ trunk/reactos/ntoskrnl/ldr/loader.c	2005-01-03 11:30:28 UTC (rev 12753)
@@ -680,7 +680,7 @@
 	    {
 	       Execute = TRUE;
 	    }
-	    if (Characteristics & (IMAGE_SCN_MEM_WRITE|IMAGE_SCN_LNK_OTHER))
+	    if (Characteristics & (IMAGE_SCN_MEM_WRITE|IMAGE_SCN_CNT_UNINITIALIZED_DATA))
 	    {
 	       Write = TRUE;
 	    }
@@ -910,7 +910,7 @@
 	   Protect = PAGE_EXECUTE_READ;
 	}
      }
-     else if (Characteristics & (IMAGE_SCN_MEM_WRITE|IMAGE_SCN_LNK_OTHER))
+     else if (Characteristics & (IMAGE_SCN_MEM_WRITE|IMAGE_SCN_CNT_UNINITIALIZED_DATA))
      {
         Protect = PAGE_READWRITE;
      }
@@ -1115,7 +1115,7 @@
 	PageAddress = (PVOID)((ULONG_PTR)PageAddress + PAGE_SIZE);
      }
      if (DriverBase == ModuleLoadBase &&
-	 Characteristics & IMAGE_SCN_LNK_OTHER)
+	 Characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA)
      {
         /* For ntoskrnl, we must stop after the bss section */
 	break;