mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Remove lingering dlopen thunk
This commit is contained in:
parent
b3fb6cff43
commit
c4205f8305
1 changed files with 2 additions and 3 deletions
|
@ -722,14 +722,13 @@ static void *dlopen_nt(const char *path, int mode) {
|
||||||
|
|
||||||
static void *dlsym_nt(void *handle, const char *name) {
|
static void *dlsym_nt(void *handle, const char *name) {
|
||||||
void *x64_abi_func;
|
void *x64_abi_func;
|
||||||
void *sysv_abi_func = 0;
|
|
||||||
if ((x64_abi_func = GetProcAddress((uintptr_t)handle, name))) {
|
if ((x64_abi_func = GetProcAddress((uintptr_t)handle, name))) {
|
||||||
sysv_abi_func = foreign_thunk_nt(x64_abi_func);
|
return x64_abi_func;
|
||||||
} else {
|
} else {
|
||||||
dlerror_set("symbol not found: ");
|
dlerror_set("symbol not found: ");
|
||||||
strlcat(dlerror_buf, name, sizeof(dlerror_buf));
|
strlcat(dlerror_buf, name, sizeof(dlerror_buf));
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return sysv_abi_func;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *dlopen_silicon(const char *path, int mode) {
|
static void *dlopen_silicon(const char *path, int mode) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue