X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c27c3c63154cdeb148e7691450d566d788f86b9..079c842cae5a3ad08ad930ebc29a33c59acf634d:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 796231c31a..2c82172f8f 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -166,7 +166,7 @@ void wxLibrary::PrepareClasses(wxClassInfo *first) { if (info->m_className) classTable.Put(info->m_className, (wxObject *)info); - info = info->GetNext(); + info = (wxClassInfo *)info->GetNext(); } // Set base pointers for each wxClassInfo @@ -363,7 +363,8 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name) if (node != NULL) return ((wxLibrary *)node->Data()); #else // !OS/2 - if ( (node = m_loaded.Find(name.GetData())) ) + node = m_loaded.Find(name.GetData()); + if ( node ) return ((wxLibrary *)node->Data()); #endif // If DLL shares data, this is necessary.