mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 01:52:01 +00:00
[PEFIXUP]
- Use correct struct member for section count. Patch by Sergei Antonov (saproj at gmail dot com) svn path=/trunk/; revision=61856
This commit is contained in:
parent
c7c833a296
commit
13083f4d74
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
/* Update section flags */
|
/* Update section flags */
|
||||||
for (i = 0, section_header = IMAGE_FIRST_SECTION(nt_header);
|
for (i = 0, section_header = IMAGE_FIRST_SECTION(nt_header);
|
||||||
i < dtohl(nt_header->OptionalHeader.NumberOfRvaAndSizes);
|
i < dtohl(nt_header->FileHeader.NumberOfSections);
|
||||||
i++, section_header++)
|
i++, section_header++)
|
||||||
{
|
{
|
||||||
if (!strcmp((char*)section_header->Name, ".text") ||
|
if (!strcmp((char*)section_header->Name, ".text") ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue