mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-05-05 16:29:33 +00:00
Fix a type and expand a comment a bit.
This commit is contained in:
parent
8f9662cc92
commit
b9d1592c50
@ -191,8 +191,14 @@ bool parse_resource_table(bounded_buffer *sectionData, ::uint32_t o, ::uint32_t
|
|||||||
} else {
|
} else {
|
||||||
resource_dat_entry rdat;
|
resource_dat_entry rdat;
|
||||||
|
|
||||||
/* This one is usind rde->RVA as an offset. */
|
/*
|
||||||
|
* This one is using rde->RVA as an offset.
|
||||||
|
*
|
||||||
|
* This is because we don't want to set o because we have to keep the
|
||||||
|
* original value when we are done parsing this resource data entry.
|
||||||
|
* We could store the original o value and reset it when we are done,
|
||||||
|
* but meh.
|
||||||
|
*/
|
||||||
#define READ_DWORD(x) \
|
#define READ_DWORD(x) \
|
||||||
if(readDword(sectionData, rde->RVA+_offset(resource_dat_entry, x), rdat.x) == false) { \
|
if(readDword(sectionData, rde->RVA+_offset(resource_dat_entry, x), rdat.x) == false) { \
|
||||||
return false; \
|
return false; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user