From 537b81f46073aa813b42fb2e4ce2ff54caacf95c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 28 May 2018 03:29:40 -0400 Subject: [PATCH] lx_dump: 16-bit modules should list imported modules starting at 1. --- lx_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lx_dump.c b/lx_dump.c index 6fe165c..38894d7 100644 --- a/lx_dump.c +++ b/lx_dump.c @@ -770,7 +770,7 @@ static int parseNeExe(const uint8 *origexe, const uint8 *exe) const uint8 *name = (exe + ne->imported_names_table_offset) + *ptr; const uint32 name_string_len = (uint32) *name; name++; - printf(" %u: ", (uint) i); + printf(" %u: ", (uint) i+1); for (uint32 j = 0; j < name_string_len; j++, name++) { printf("%c", (int) *name); }