Navigation Menu

Skip to content

Commit

Permalink
Fixed lookups into the non-resident name table.
Browse files Browse the repository at this point in the history
It uses a different base offset than the resident one.
  • Loading branch information
icculus committed Oct 27, 2016
1 parent 26a5298 commit 970cbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lx_loader.c
Expand Up @@ -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

Expand Down

0 comments on commit 970cbbc

Please sign in to comment.