summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exports/pe_enum_image_exports.c17
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);