mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
- Fixed the searching for uninitialized (like .bss) segments.
svn path=/trunk/; revision=12753
This commit is contained in:
parent
5e976e5bad
commit
896ba320b8
|
@ -680,7 +680,7 @@ LdrLookupPageProtection(PVOID PageStart,
|
||||||
{
|
{
|
||||||
Execute = TRUE;
|
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;
|
Write = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -910,7 +910,7 @@ LdrPEProcessModule(PVOID ModuleLoadBase,
|
||||||
Protect = PAGE_EXECUTE_READ;
|
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;
|
Protect = PAGE_READWRITE;
|
||||||
}
|
}
|
||||||
|
@ -1115,7 +1115,7 @@ LdrSafePEProcessModule(PVOID ModuleLoadBase,
|
||||||
PageAddress = (PVOID)((ULONG_PTR)PageAddress + PAGE_SIZE);
|
PageAddress = (PVOID)((ULONG_PTR)PageAddress + PAGE_SIZE);
|
||||||
}
|
}
|
||||||
if (DriverBase == ModuleLoadBase &&
|
if (DriverBase == ModuleLoadBase &&
|
||||||
Characteristics & IMAGE_SCN_LNK_OTHER)
|
Characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA)
|
||||||
{
|
{
|
||||||
/* For ntoskrnl, we must stop after the bss section */
|
/* For ntoskrnl, we must stop after the bss section */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue