diff options
author | midipix <writeonce@midipix.org> | 2016-11-19 17:42:02 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-19 17:42:53 -0500 |
commit | 8a6eed6fb5c936b3473bf19eff10324132ba6e0c (patch) | |
tree | 078cba2beae02884b6d4a02136e6e55631d8898f | |
parent | ff3cc06d7baeea5bbbaaa11410ba10bea8955fb1 (diff) | |
download | pemagine-8a6eed6fb5c936b3473bf19eff10324132ba6e0c.tar.bz2 pemagine-8a6eed6fb5c936b3473bf19eff10324132ba6e0c.tar.xz |
pe_enum_modules() and friends: code maintenance.
-rw-r--r-- | src/modules/pe_enum_modules.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); |