From 970cbbc0c2fa209c2c7aeee593dec7196f850937 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 27 Oct 2016 02:26:20 -0400 Subject: [PATCH] Fixed lookups into the non-resident name table. It uses a different base offset than the resident one. --- lx_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lx_loader.c b/lx_loader.c index 0c89a31..07975d1 100644 --- a/lx_loader.c +++ b/lx_loader.c @@ -1426,7 +1426,7 @@ static LxModule *loadLxModule(const char *fname, uint8 *exe, uint32 exelen, int } // if if (lx->non_resident_name_table_offset && lx->non_resident_name_table_len) { - if (!loadLxNameTable(retval, exe + lx->non_resident_name_table_offset)) + if (!loadLxNameTable(retval, origexe + lx->non_resident_name_table_offset)) goto loadlx_failed; } // if