X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a585ca5cb0d1e9d49c3abf83c4ec7730c14924f1..76784eecd960198bc54429a6e16d5bd7af458fce:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 1e0fc6bdf4..d7b654faa1 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -23,9 +23,9 @@ #include "wx/wxprec.h" -#ifdef __BORLANDC__ -# pragma hdrstop -#endif //__BORLANDC__ +#ifdef __BORLANDC__ + #pragma hdrstop +#endif #if wxUSE_DYNLIB_CLASS @@ -174,7 +174,7 @@ void *wxLibrary::GetSymbol(const wxString& symbname) /* static */ wxDllType -wxDllLoader::LoadLibrary(const wxString & libname, bool *success) +wxDllLoader::LoadLibrary(const wxString & lib_name, bool *success) { wxASSERT(success); @@ -231,7 +231,7 @@ wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name) if ( !symbol ) { wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"), - symbname.c_str()); + name.c_str()); } return symbol; } @@ -300,8 +300,8 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name) #endif // __UNIX__ #endif - bool success; - handle = wxDllLoader::LoadDll(lib_name, &success); + bool success = FALSE; + wxDllType handle = wxDllLoader::LoadLibrary(lib_name, &success); if(success) { lib = new wxLibrary(handle);