mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue