mirror of
https://github.com/reactos/reactos.git
synced 2026-06-22 15:45:20 +08: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