Skip to content

Commit

Permalink
fixed offseting on windows (how did it compile before?)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Mar 5, 2024
1 parent ea998d7 commit 72de297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ LM_EnumSymbols(const lm_module_t *module,
symbol.name = (lm_string_t)(modbase + export_names[i]);
printf("symbol name: %s\n", symbol.name);

symbol.address = (lm_address_t)(module->base, export_funcs[i]);
symbol.address = (lm_address_t)(module->base + export_funcs[i]);
printf("symbol address: %p\n", (void *)symbol.address);

if (callback(&symbol, arg) == LM_FALSE)
Expand Down

0 comments on commit 72de297

Please sign in to comment.