Fix incorrect typing of function loader

Co-authored-by: 韩朴宇 <w12101111@gmail.com>
This commit is contained in:
Cacodemon345
2021-08-22 20:34:19 +06:00
parent bd74669ad5
commit 435174a06a

View File

@@ -54,7 +54,7 @@ void* dynld_module(const char *name, dllimp_t *table)
{
for (imp = table; imp->name != NULL; imp++)
{
if ((imp->func = dlsym(modhandle, imp->name)) == NULL)
if ((*(void**)imp->func = dlsym(modhandle, imp->name)) == NULL)
{
dlclose(modhandle);
return NULL;