From 5b008c36b902d005d6b08613d5a390e557d78e13 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 31 May 2025 21:41:31 +0000 Subject: driver: struct pe_common_ctx: refactor, remove the actflags member. --- src/driver/pe_unit_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver/pe_unit_ctx.c') diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c index 0e0373a..a5509f4 100644 --- a/src/driver/pe_unit_ctx.c +++ b/src/driver/pe_unit_ctx.c @@ -143,7 +143,7 @@ int pe_lib_get_unit_ctx( pe_driver_set_ectx( dctx,0,path); - prot = (dctx->cctx->actflags & PERK_ACTION_MAP_READWRITE) + prot = (dctx->cctx->drvflags & PERK_DRIVER_MAP_WRITE_ACCESS) ? PROT_READ | PROT_WRITE : PROT_READ; -- cgit v1.2.3