From aa22a3cfda6635934dfb011cc4ed9b704fe10ffd Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 9 Nov 2008 18:19:46 +0000 Subject: [PATCH] dlclose() also set the static error variable. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28579 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/dlfcn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/dlfcn.c b/src/system/libroot/posix/dlfcn.c index fee50e8dfd..4f6f328d79 100644 --- a/src/system/libroot/posix/dlfcn.c +++ b/src/system/libroot/posix/dlfcn.c @@ -57,7 +57,7 @@ dlsym(void *handle, char const *name) int dlclose(void *handle) { - return __gRuntimeLoader->unload_library(handle); + return sStatus = __gRuntimeLoader->unload_library(handle); }