Remove lingering dlopen thunk

This commit is contained in:
Justine Tunney 2024-01-07 02:14:28 -08:00
parent b3fb6cff43
commit c4205f8305
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -722,14 +722,13 @@ static void *dlopen_nt(const char *path, int mode) {
static void *dlsym_nt(void *handle, const char *name) {
void *x64_abi_func;
void *sysv_abi_func = 0;
if ((x64_abi_func = GetProcAddress((uintptr_t)handle, name))) {
sysv_abi_func = foreign_thunk_nt(x64_abi_func);
return x64_abi_func;
} else {
dlerror_set("symbol not found: ");
strlcat(dlerror_buf, name, sizeof(dlerror_buf));
return 0;
}
return sysv_abi_func;
}
static void *dlopen_silicon(const char *path, int mode) {