summaryrefslogtreecommitdiff
path: root/src/logic/pe_map_raw_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic/pe_map_raw_image.c')
-rw-r--r--src/logic/pe_map_raw_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/pe_map_raw_image.c b/src/logic/pe_map_raw_image.c
index f7f0df3..36978c7 100644
--- a/src/logic/pe_map_raw_image.c
+++ b/src/logic/pe_map_raw_image.c
@@ -42,7 +42,8 @@ int pe_map_raw_image(
return PERK_SYSTEM_ERROR(dctx);
else if (st.st_size == 0)
- return PERK_CUSTOM_ERROR(dctx,0);
+ return PERK_CUSTOM_ERROR(
+ dctx,PERK_ERR_IMAGE_SIZE_ZERO);
map->size = st.st_size;
map->addr = mmap(0,map->size,prot,MAP_PRIVATE,fd,0);