mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
Make w3seek happy.
svn path=/trunk/; revision=16981
This commit is contained in:
parent
c04526fcde
commit
aea5c02d13
1 changed files with 6 additions and 6 deletions
|
@ -336,19 +336,19 @@ int main(int argc, char **argv)
|
|||
i < nt_header->OptionalHeader.NumberOfRvaAndSizes;
|
||||
i++, section_header++)
|
||||
{
|
||||
if (!strcmp(section_header->Name, ".text") ||
|
||||
!strcmp(section_header->Name, ".data") ||
|
||||
!strcmp(section_header->Name, ".idata") ||
|
||||
!strcmp(section_header->Name, ".bss"))
|
||||
if (!strcmp((char*)section_header->Name, ".text") ||
|
||||
!strcmp((char*)section_header->Name, ".data") ||
|
||||
!strcmp((char*)section_header->Name, ".idata") ||
|
||||
!strcmp((char*)section_header->Name, ".bss"))
|
||||
{
|
||||
section_header->Characteristics |= IMAGE_SCN_MEM_NOT_PAGED;
|
||||
section_header->Characteristics &= ~IMAGE_SCN_MEM_DISCARDABLE;
|
||||
}
|
||||
else if (!strcmp(section_header->Name, "INIT"))
|
||||
else if (!strcmp((char*)section_header->Name, "INIT"))
|
||||
{
|
||||
section_header->Characteristics |= IMAGE_SCN_MEM_DISCARDABLE;
|
||||
}
|
||||
else if (!strcmp(section_header->Name, "PAGE"))
|
||||
else if (!strcmp((char*)section_header->Name, "PAGE"))
|
||||
{
|
||||
section_header->Characteristics |= IMAGE_SCN_MEM_NOT_PAGED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue