diff options
author | midipix <writeonce@midipix.org> | 2016-11-19 16:47:46 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-19 16:50:04 -0500 |
commit | d70e620cb81ded2dfeff1c612c73e3d8e87b67df (patch) | |
tree | e235418ae25190a7c4f7cab7aed593f78610486d /src/exports | |
parent | 3602ae0780515f5d09eda514b9b8bb7bd6340d3a (diff) | |
download | pemagine-d70e620cb81ded2dfeff1c612c73e3d8e87b67df.tar.bz2 pemagine-d70e620cb81ded2dfeff1c612c73e3d8e87b67df.tar.xz |
pe_enum_image_exports(): code maintenance.
Diffstat (limited to 'src/exports')
-rw-r--r-- | src/exports/pe_enum_image_exports.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/exports/pe_enum_image_exports.c b/src/exports/pe_enum_image_exports.c index e097802..80c262c 100644 --- a/src/exports/pe_enum_image_exports.c +++ b/src/exports/pe_enum_image_exports.c @@ -9,21 +9,20 @@ #include <pemagine/pe_structs.h> #include <pemagine/pemagine.h> -pe_api int pe_enum_image_exports( const void * base, pe_enum_image_exports_callback * callback, struct pe_export_sym * sym, void * ctx) { - struct pe_raw_export_hdr*exp_hdr; - uint32_t * count; - uint32_t * fn_addr; - uint32_t * fn_names; - uint16_t * fn_ordinals; - uint32_t * offset; - uint32_t idx; - int ret; + int ret; + uint32_t idx; + uint32_t * offset; + struct pe_raw_export_hdr * exp_hdr; + uint32_t * count; + uint32_t * fn_addr; + uint32_t * fn_names; + uint16_t * fn_ordinals; if (!(exp_hdr = pe_get_image_export_hdr_addr(base,0))) { callback(base,0,0,PE_CALLBACK_REASON_ERROR,ctx); |