summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/DynamicLibrary.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-12-17 17:49:38 +0000
committernakeee <nakeee@gmail.com>2008-12-17 17:49:38 +0000
commit62d44c91666e894a0807b6ba80dc527d29609da0 (patch)
tree6adc1fda0a28250b7984a14dbc0e9c7550f35029 /Source/Core/Common/Src/DynamicLibrary.cpp
parentfb3c13588bfd2f1a1c8b31e3d1eb482a590e8a26 (diff)
Clear errors, fixed unload on linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1566 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/DynamicLibrary.cpp')
-rw-r--r--Source/Core/Common/Src/DynamicLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.cpp b/Source/Core/Common/Src/DynamicLibrary.cpp
index 63feb2de89..fa4b361677 100644
--- a/Source/Core/Common/Src/DynamicLibrary.cpp
+++ b/Source/Core/Common/Src/DynamicLibrary.cpp
@@ -124,7 +124,7 @@ int DynamicLibrary::Unload()
if( ! (library_file.find("OGL.") != std::string::npos) && !PowerPC::CPU_POWERDOWN)
retval = FreeLibrary(library);
#else
- retval = dlclose(library);
+ retval = dlclose(library)?0:1;
#endif
if (!retval) {
LOG(MASTER_LOG, "Error unloading DLL %s: %s", library_file.c_str(),