Commit 076e061e authored by Brice Videau's avatar Brice Videau
Browse files

Fix offset for header-less export tables.

parent a5f3afc7
Pipeline #11609 failed with stage
...@@ -135,7 +135,7 @@ static const void * _wrap_buggy_export_table(const void *pExportTable, const CUu ...@@ -135,7 +135,7 @@ static const void * _wrap_buggy_export_table(const void *pExportTable, const CUu
for(size_t i = 0; i < num_entries; i++) { for(size_t i = 0; i < num_entries; i++) {
if (entries[i]) if (entries[i])
_wrap_export(entries[i], (void *)puuid, _wrap_export(entries[i], (void *)puuid,
sizeof(size_t) + i * sizeof(void*), i * sizeof(void*),
new_entries + i, new_entries + i,
(void**)((intptr_t)mem + i * WRAPPER_SIZE)); (void**)((intptr_t)mem + i * WRAPPER_SIZE));
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment