[ros-diffs] [gedmurphy] 33611: iterate the number of sections, not the number of directory entries
gedmurphy at svn.reactos.org
gedmurphy at svn.reactos.org
Tue May 20 16:20:54 CEST 2008
Author: gedmurphy
Date: Tue May 20 09:20:54 2008
New Revision: 33611
URL: http://svn.reactos.org/svn/reactos?rev=33611&view=rev
Log:
iterate the number of sections, not the number of directory entries
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=33611&r1=33610&r2=33611&view=diff
==============================================================================
--- trunk/reactos/tools/pefixup.c [iso-8859-1] (original)
+++ trunk/reactos/tools/pefixup.c [iso-8859-1] Tue May 20 09:20:54 2008
@@ -201,7 +201,7 @@
unsigned int i;
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 (rva >= dtohl(section_header->VirtualAddress) &&
More information about the Ros-diffs
mailing list