Clear errors, fixed unload on linux

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1566 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-12-17 17:49:38 +00:00
parent fb3c13588b
commit 62d44c9166
8 changed files with 28 additions and 14 deletions

View file

@ -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(),