From 435174a06a100a2d0d3632ecb99d775c467830b2 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 22 Aug 2021 20:34:19 +0600 Subject: [PATCH] Fix incorrect typing of function loader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 韩朴宇 --- src/unix/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/unix.c b/src/unix/unix.c index 99fffbc77..15000598e 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -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;