]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynload.cpp
FALSE not false.
[wxWidgets.git] / src / common / dynload.cpp
index 3735dada227abe85ee1bef76dc42c6b809cd6ff1..daf499db9890cd5ae7b990a8c4802bda7c05d55c 100644 (file)
@@ -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;
 }