summaryrefslogtreecommitdiffhomepage
path: root/src/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/nt32/dynlink.c2
-rw-r--r--src/ldso/nt64/dynlink.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/nt32/dynlink.c b/src/ldso/nt32/dynlink.c
index 28f3334..cd317d5 100644
--- a/src/ldso/nt32/dynlink.c
+++ b/src/ldso/nt32/dynlink.c
@@ -111,7 +111,7 @@ int __dladdr(const void * addr, Dl_info * info)
int __dlinfo(void * dso, int req, void * res)
{
- return __ldso_vtbl->dlinfo(dso,req,res);
+ return (__ldso_vtbl->dlinfo(dso,req,res)) ? -1 : 0;
}
void *__dlsym(void * restrict p, const char * restrict s)
diff --git a/src/ldso/nt64/dynlink.c b/src/ldso/nt64/dynlink.c
index 28f3334..cd317d5 100644
--- a/src/ldso/nt64/dynlink.c
+++ b/src/ldso/nt64/dynlink.c
@@ -111,7 +111,7 @@ int __dladdr(const void * addr, Dl_info * info)
int __dlinfo(void * dso, int req, void * res)
{
- return __ldso_vtbl->dlinfo(dso,req,res);
+ return (__ldso_vtbl->dlinfo(dso,req,res)) ? -1 : 0;
}
void *__dlsym(void * restrict p, const char * restrict s)