Author: tfaber
Date: Tue Jan 28 05:49:19 2014
New Revision: 61856
URL:
http://svn.reactos.org/svn/reactos?rev=61856&view=rev
Log:
[PEFIXUP]
- Use correct struct member for section count. Patch by Sergei Antonov (saproj at gmail
dot com)
Modified:
trunk/reactos/tools/pefixup.c
Modified: trunk/reactos/tools/pefixup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/pefixup.c?rev=61856&…
==============================================================================
--- trunk/reactos/tools/pefixup.c [iso-8859-1] (original)
+++ trunk/reactos/tools/pefixup.c [iso-8859-1] Tue Jan 28 05:49:19 2014
@@ -378,7 +378,7 @@
{
/* Update section flags */
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++)
{
if (!strcmp((char*)section_header->Name, ".text") ||