Nonlazy resolution of symbols at load time for modules...

... Forcing appropriate failure to load modules with unsatisfied symbols on all
platforms.
This commit is contained in:
Paul Licameli 2020-10-12 23:14:01 -04:00
parent e52115630a
commit dcd8bca896
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ bool Module::Load()
auto ShortName = wxFileName(mName).GetName();
if (!mLib->Load(mName, wxDL_LAZY | wxDL_QUIET)) {
if (!mLib->Load(mName, wxDL_NOW | wxDL_QUIET | wxDL_GLOBAL)) {
auto Error = wxString(wxSysErrorMsg());
AudacityMessageBox(XO("Unable to load the \"%s\" module.\n\nError: %s").Format(ShortName, Error),
XO("Module Unsuitable"));