X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee1107cf73315e07c736b9ddb1bcf63055bb8e55..229653c99e1d679aab15772a4a25909ca52c4d94:/src/common/dynload.cpp diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index 3735dada22..daf499db98 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -433,7 +433,7 @@ void wxPluginLibrary::RestoreClassInfo() info = wxClassInfo::sm_first; while( info->m_next && info->m_next != m_after ) info = info->m_next; - wxASSERT_MSG( info, _T("ClassInfo from wxPluginLibrary not found on purge")) + wxASSERT_MSG( info, _T("ClassInfo from wxPluginLibrary not found on purge")); info->m_next = m_before; } @@ -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; }