summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/DynamicLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/DynamicLibrary.cpp')
-rw-r--r--Source/Core/Common/Src/DynamicLibrary.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.cpp b/Source/Core/Common/Src/DynamicLibrary.cpp
index 7344461592..bb97fe8a27 100644
--- a/Source/Core/Common/Src/DynamicLibrary.cpp
+++ b/Source/Core/Common/Src/DynamicLibrary.cpp
@@ -65,7 +65,7 @@ std::string GetLastErrorAsString()
static std::string errstr;
char *tmp = dlerror();
if (tmp)
- errstr = tmp;
+ errstr = tmp;
return errstr;
#endif
@@ -121,7 +121,8 @@ int DynamicLibrary::Unload()
Console::Print("FreeLibrary: %i\n", library_file.c_str());
retval = FreeLibrary(library);
#else
- retval = dlclose(library)?0:1;
+ Console::Print("FreeLibrary: %i\n", library_file.c_str());
+ retval = dlclose(library)?0:1;
#endif
if (!retval) {
PanicAlert("Error unloading DLL %s: %s", library_file.c_str(),