diff options
author | midipix <writeonce@midipix.org> | 2016-05-27 04:52:41 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-27 04:52:41 -0400 |
commit | cfd00a35a48e9a721d18c9c1d504370277fbbbff (patch) | |
tree | 25d1adec4e3a29d235ade65b4828a110023561d6 | |
parent | aa2c18d44f6e211daaf9c4e1673a0c88af4a90ed (diff) | |
download | pemagine-cfd00a35a48e9a721d18c9c1d504370277fbbbff.tar.bz2 pemagine-cfd00a35a48e9a721d18c9c1d504370277fbbbff.tar.xz |
pe_get_import_symbol_info(): remove superfluous parameters.
-rw-r--r-- | include/pemagine/pemagine.h | 2 | ||||
-rw-r--r-- | src/meta/pe_get_symbol_name.c | 20 |
2 files changed, 0 insertions, 22 deletions
diff --git a/include/pemagine/pemagine.h b/include/pemagine/pemagine.h index d5cb241..5516e6d 100644 --- a/include/pemagine/pemagine.h +++ b/include/pemagine/pemagine.h @@ -178,8 +178,6 @@ pe_api int pe_enum_image_import_hdrs (const void * base, pe_api char * pe_get_symbol_name (const void * base, const void * sym_addr); pe_api struct pe_ldr_tbl_entry *pe_get_symbol_module_info (const void * sym_addr); pe_api char * pe_get_import_symbol_info (const void * sym_addr, - void ** sym_image_addr, - char ** sym_name, struct pe_ldr_tbl_entry ** ldr_tbl_entry); pe_api int pe_enum_modules_in_load_order (pe_enum_modules_callback *, void * ctx); diff --git a/src/meta/pe_get_symbol_name.c b/src/meta/pe_get_symbol_name.c index 4fe48be..e0205ce 100644 --- a/src/meta/pe_get_symbol_name.c +++ b/src/meta/pe_get_symbol_name.c @@ -24,16 +24,12 @@ static int pe_enum_exports_callback( #if defined (__NT32) static char * pe_get_imported_symbol_info_32( const void * sym_addr, - void ** sym_image_addr, - char ** sym_name, struct pe_ldr_tbl_entry ** ldr_tbl_entry); #endif #if defined (__NT64) static char * pe_get_imported_symbol_info_64( const void * sym_addr, - void ** sym_image_addr, - char ** sym_name, struct pe_ldr_tbl_entry ** ldr_tbl_entry); #endif @@ -59,21 +55,15 @@ char * pe_get_symbol_name(const void * base, const void * sym_addr) pe_api char * pe_get_import_symbol_info( const void * sym_addr, - void ** sym_image_addr, - char ** sym_name, struct pe_ldr_tbl_entry ** ldr_tbl_entry) { #if defined(__NT32) return pe_get_imported_symbol_info_32( sym_addr, - sym_image_addr, - sym_name, ldr_tbl_entry); #elif defined (__NT64) return pe_get_imported_symbol_info_64( sym_addr, - sym_image_addr, - sym_name, ldr_tbl_entry); #endif } @@ -106,8 +96,6 @@ static int pe_enum_exports_callback( #ifdef __NT32 static char * pe_get_imported_symbol_info_32( const void * sym_addr, - void ** sym_image_addr, - char ** sym_name, struct pe_ldr_tbl_entry ** ldr_tbl_entry) { struct symbol { @@ -155,8 +143,6 @@ static char * pe_get_imported_symbol_info_32( #ifdef __NT64 static char * pe_get_imported_symbol_info_64( const void * sym_addr, - void ** sym_image_addr, - char ** sym_name, struct pe_ldr_tbl_entry ** ldr_tbl_entry) { struct symbol { @@ -198,12 +184,6 @@ static char * pe_get_imported_symbol_info_64( if (fn_name) { if (ldr_tbl_entry) *ldr_tbl_entry = mod_info; - - if (sym_image_addr) - *sym_image_addr = (void *)sym_addr; - - if (sym_name) - *sym_name = fn_name; } return fn_name; |