X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a949e8fac2666418b2a6eb15e94959563cf8aad6..05159a2750ed2cc5945a85bc5fc6849ad1a30e75:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index de564b9d02..558b579e0c 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -146,7 +146,7 @@ wxLibrary::wxLibrary(wxDllType handle) m_handle = handle; // Some system may use a local heap for library. - get_first = (t_get_first)GetSymbol("wxGetClassFirst"); + get_first = (t_get_first)GetSymbol(_T("wxGetClassFirst")); // It is a wxWindows DLL. if (get_first) PrepareClasses(get_first()); @@ -337,10 +337,7 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su const wxChar *err = dlerror(); if( err ) { - failed = TRUE; - wxLogError( msg, err ); - wxLogError(_("Couldn't find symbol '%s' in a dynamic library"), - err); + wxLogError(wxT("%s"), err); } #else failed = TRUE;