From 95fab3eca1fbce8fb3b42692ba990848af6848fa Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 24 Oct 2016 19:41:45 -0400 Subject: pe_free_driver_ctx(): fix readability. --- src/driver/pe_driver_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/driver') diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index 7ef510e..fdc2704 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -240,8 +240,8 @@ void pe_free_driver_ctx(struct pe_driver_ctx * ctx) uintptr_t addr; if (ctx) { - addr = (uintptr_t)ctx - offsetof(struct pe_driver_ctx_alloc,ctx); - addr = addr - offsetof(struct pe_driver_ctx_impl,ctx); + addr = (uintptr_t)ctx - offsetof(struct pe_driver_ctx_impl,ctx); + addr = addr - offsetof(struct pe_driver_ctx_alloc,ctx); ictx = (struct pe_driver_ctx_alloc *)addr; pe_free_driver_ctx_impl(ictx); } -- cgit v1.2.3