From 8a6eed6fb5c936b3473bf19eff10324132ba6e0c Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 19 2016 22:42:53 +0000 Subject: pe_enum_modules() and friends: code maintenance. --- diff --git a/src/modules/pe_enum_modules.c b/src/modules/pe_enum_modules.c index c36b076..203d9eb 100644 --- a/src/modules/pe_enum_modules.c +++ b/src/modules/pe_enum_modules.c @@ -57,8 +57,7 @@ static int pe_enum_modules( plist_current = plist_head; - do - { + do { peb_tbl_addr = (uintptr_t)plist_current - in_order_member_offset; ldr_tbl_entry = (struct pe_ldr_tbl_entry *)peb_tbl_addr; @@ -83,19 +82,18 @@ static int pe_enum_modules( } -pe_api int pe_enum_modules_in_load_order(pe_enum_modules_callback * fn, void * ctx) { return pe_enum_modules(fn,IN_LOAD_ORDER_MODULE_LIST_OFFSET,ctx); } -pe_api + int pe_enum_modules_in_memory_order(pe_enum_modules_callback * fn, void * ctx) { return pe_enum_modules(fn,IN_MEMORY_ORDER_MODULE_LIST_OFFSET,ctx); } -pe_api + int pe_enum_modules_in_init_order(pe_enum_modules_callback * fn, void * ctx) { return pe_enum_modules(fn,IN_INITIALIZATION_ORDER_MODULE_LIST_OFFSET,ctx);