diff options
author | midipix <writeonce@midipix.org> | 2016-11-15 22:06:40 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-15 22:06:40 -0500 |
commit | a8c6cb316b44e95facba8a5cd1033d419f905cbe (patch) | |
tree | bf3124886472d63cc5470372035e43ece7e4740b /src/logic | |
parent | c3af45f9ccbf4475d77f82512f308b64084f88ae (diff) | |
download | perk-a8c6cb316b44e95facba8a5cd1033d419f905cbe.tar.bz2 perk-a8c6cb316b44e95facba8a5cd1033d419f905cbe.tar.xz |
pe_get_rva_from_roffset(): code maintenance.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/pe_get_image_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c index f099ecb..70a057b 100644 --- a/src/logic/pe_get_image_meta.c +++ b/src/logic/pe_get_image_meta.c @@ -82,7 +82,7 @@ int pe_get_rva_from_roffset(const struct pe_image_meta * m, uint32_t roffset, ui int i; uint32_t low,high,ref; - for (i=0, ref=-1; i<m->coff.num_of_sections; i++) { + for (i=0, ref=~0; i<m->coff.num_of_sections; i++) { low = m->sectbl[i].ptr_to_raw_data; high = low + m->sectbl[i].virtual_size; |