summaryrefslogtreecommitdiffhomepage
path: root/src/reader/pe_read_optional_header.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader/pe_read_optional_header.c')
-rw-r--r--src/reader/pe_read_optional_header.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader/pe_read_optional_header.c b/src/reader/pe_read_optional_header.c
index 24aa95b..25c1b34 100644
--- a/src/reader/pe_read_optional_header.c
+++ b/src/reader/pe_read_optional_header.c
@@ -25,7 +25,7 @@ static int pe_read_optional_header_little_endian(const union pe_opt_hdr * p, str
memcpy(&m->ldr,&p->opt_hdr_32.loader_flags,sizeof(struct pe_meta_opt_hdr_ldr));
if (m->ldr.rva_and_sizes > 0x10)
- return PERK_BAD_IMAGE_TYPE;
+ return PERK_ERR_BAD_IMAGE_TYPE;
else
memcpy(&m->dirs,&p->opt_hdr_32.export_tbl,sizeof(struct pe_meta_opt_hdr_dirs));
@@ -38,14 +38,14 @@ static int pe_read_optional_header_little_endian(const union pe_opt_hdr * p, str
memcpy(&m->ldr,&p->opt_hdr_64.loader_flags,sizeof(struct pe_meta_opt_hdr_ldr));
if (m->ldr.rva_and_sizes > 0x10)
- return PERK_BAD_IMAGE_TYPE;
+ return PERK_ERR_BAD_IMAGE_TYPE;
else
memcpy(&m->dirs,&p->opt_hdr_64.export_tbl,sizeof(struct pe_meta_opt_hdr_dirs));
break;
default:
- return PERK_BAD_IMAGE_TYPE;
+ return PERK_ERR_BAD_IMAGE_TYPE;
}
return 0;
@@ -80,7 +80,7 @@ static int pe_read_optional_header_big_endian(const union pe_opt_hdr * p, struct
break;
default:
- return PERK_BAD_IMAGE_TYPE;
+ return PERK_ERR_BAD_IMAGE_TYPE;
}
/* std */