From 62d44c91666e894a0807b6ba80dc527d29609da0 Mon Sep 17 00:00:00 2001 From: nakeee Date: Wed, 17 Dec 2008 17:49:38 +0000 Subject: Clear errors, fixed unload on linux git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1566 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/DynamicLibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/Src/DynamicLibrary.cpp') 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(), -- cgit v1.2.3