From f8064316b13154de67bb6e4b384e1487f6b14d6f Mon Sep 17 00:00:00 2001 From: nakeee Date: Sat, 31 Jan 2009 21:49:06 +0000 Subject: Some code clean up console now prints to file and stderr on windows someone feels like creating a wxw version? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2046 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/DynamicLibrary.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 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(), -- cgit v1.2.3