made wxDllLoader more backwards compatible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -657,7 +657,7 @@ void wxPluginManager::Unload()
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_2
|
||||
|
||||
wxDllType wxDllLoader::LoadLibrary(const wxString &name)
|
||||
wxDllType wxDllLoader::LoadLibrary(const wxString &name, bool *success)
|
||||
{
|
||||
wxPluginLibrary *p = wxPluginManager::LoadLibrary
|
||||
(
|
||||
@@ -665,6 +665,9 @@ wxDllType wxDllLoader::LoadLibrary(const wxString &name)
|
||||
wxDL_DEFAULT | wxDL_VERBATIM | wxDL_NOSHARE
|
||||
);
|
||||
|
||||
if ( success )
|
||||
*success = p != NULL;
|
||||
|
||||
return p ? p->GetLibHandle() : 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user