diff options
Diffstat (limited to 'src/modules')
-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); |