X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6057972be41063d3c6038f09605eec76931a847a..cffbfebc684e000e4fd859b05b2f6fabae633c8a:/src/common/dynlib.cpp?ds=sidebyside diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 0b479642b6..2c82172f8f 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -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.