Fixed compilation, sorry for that.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d1c7e624c4
commit
4dc2c3bbc5
@ -72,7 +72,7 @@ class wxDllLoader
|
|||||||
@param success Must point to a bool variable which will be set to TRUE or FALSE.
|
@param success Must point to a bool variable which will be set to TRUE or FALSE.
|
||||||
@return A handle to the loaded DLL. Use success parameter to test if it is valid.
|
@return A handle to the loaded DLL. Use success parameter to test if it is valid.
|
||||||
*/
|
*/
|
||||||
static wxDllType LoadDll(const wxString & libname, bool *success);
|
static wxDllType LoadLibrary(const wxString & libname, bool *success);
|
||||||
/** This function resolves a symbol in a loaded DLL, such as a
|
/** This function resolves a symbol in a loaded DLL, such as a
|
||||||
variable or function name.
|
variable or function name.
|
||||||
@param dllHandle Handle of the DLL, as returned by LoadDll().
|
@param dllHandle Handle of the DLL, as returned by LoadDll().
|
||||||
|
@ -174,7 +174,7 @@ void *wxLibrary::GetSymbol(const wxString& symbname)
|
|||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
wxDllType
|
wxDllType
|
||||||
wxDllLoader::LoadLibrary(const wxString & libname, bool *success)
|
wxDllLoader::LoadLibrary(const wxString & lib_name, bool *success)
|
||||||
{
|
{
|
||||||
wxASSERT(success);
|
wxASSERT(success);
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name)
|
|||||||
if ( !symbol )
|
if ( !symbol )
|
||||||
{
|
{
|
||||||
wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"),
|
wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"),
|
||||||
symbname.c_str());
|
name.c_str());
|
||||||
}
|
}
|
||||||
return symbol;
|
return symbol;
|
||||||
}
|
}
|
||||||
@ -300,8 +300,8 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name)
|
|||||||
#endif // __UNIX__
|
#endif // __UNIX__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool success;
|
bool success = FALSE;
|
||||||
handle = wxDllLoader::LoadDll(lib_name, &success);
|
wxDllType handle = wxDllLoader::LoadDll(lib_name, &success);
|
||||||
if(success)
|
if(success)
|
||||||
{
|
{
|
||||||
lib = new wxLibrary(handle);
|
lib = new wxLibrary(handle);
|
||||||
|
Loading…
Reference in New Issue
Block a user