mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 04:13:35 +00:00
iterate the number of sections, not the number of directory entries
svn path=/trunk/; revision=33611
This commit is contained in:
@@ -201,7 +201,7 @@ void *rva_to_ptr(DWORD rva)
|
||||
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) &&
|
||||
|
||||
Reference in New Issue
Block a user