X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3897b707bd39c491c820849953431e4a5751fced..c48269b9f7afca9c8e7076e0ceb06b933b2e88b8:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 2c82172f8f..f90788fb17 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -363,8 +363,7 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name) if (node != NULL) return ((wxLibrary *)node->Data()); #else // !OS/2 - node = m_loaded.Find(name.GetData()); - if ( node ) + if ( (node = m_loaded.Find(name.GetData())) != NULL) return ((wxLibrary *)node->Data()); #endif // If DLL shares data, this is necessary.