summaryrefslogtreecommitdiffhomepage
path: root/src/reader
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-11-29 19:30:23 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:29 -0500
commit7d4d3d88474a3ca002d2649094b92de63f184691 (patch)
tree64d9a30ccc1b0b1b96b43a8d946d5b0332c7d5e2 /src/reader
parenta02166cbb8f11a7c422f2069a4f4b0fe03b11a17 (diff)
downloadperk-7d4d3d88474a3ca002d2649094b92de63f184691.tar.bz2
perk-7d4d3d88474a3ca002d2649094b92de63f184691.tar.xz
perk_structs.h: rewrite cleanly; redefine pe_import_lookup_item as a union.
Diffstat (limited to 'src/reader')
-rw-r--r--src/reader/pe_read_import_header.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reader/pe_read_import_header.c b/src/reader/pe_read_import_header.c
index 50434e4..885adf6 100644
--- a/src/reader/pe_read_import_header.c
+++ b/src/reader/pe_read_import_header.c
@@ -27,17 +27,17 @@ int pe_read_import_header(const struct pe_import_hdr * p, struct pe_meta_import_
}
int pe_read_import_lookup_item(
- const struct pe_import_lookup_item * p,
+ const union pe_import_lookup_item * p,
struct pe_meta_import_lookup_item * m,
uint32_t magic)
{
switch (magic) {
case PE_MAGIC_PE32:
- m->u.import_lookup_entry_64 = pe_read_long(p->u.import_lookup_entry_32);
+ m->u.import_lookup_entry_64 = pe_read_long(p->import_lookup_entry_32);
return 0;
case PE_MAGIC_PE32_PLUS:
- m->u.import_lookup_entry_64 = pe_read_quad(p->u.import_lookup_entry_64);
+ m->u.import_lookup_entry_64 = pe_read_quad(p->import_lookup_entry_64);
return 0;
default: