summaryrefslogtreecommitdiff
path: root/src/driver/pe_unit_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/pe_unit_ctx.c')
-rw-r--r--src/driver/pe_unit_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index 5bcac3d..bed99c6 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -26,7 +26,7 @@ int pe_get_unit_ctx(
if (!dctx || !(ctx = calloc(sizeof(*ctx),1)))
return -1;
- prot = (dctx->cctx.actflags & PERK_ACTION_FLAG_MAP_READWRITE)
+ prot = (dctx->cctx.actflags & PERK_ACTION_MAP_READWRITE)
? PROT_READ | PROT_WRITE
: PROT_READ;