From acad6b4b0458a0b2e456bd96baf588566cc8e3ab Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 24 Oct 2016 23:11:39 -0400 Subject: pe_map_raw_image(): improved error trace report. --- src/logic/pe_map_raw_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3