1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

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

View File

@@ -109,7 +109,7 @@ bool Module::Load()
auto ShortName = wxFileName(mName).GetName(); 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()); auto Error = wxString(wxSysErrorMsg());
AudacityMessageBox(XO("Unable to load the \"%s\" module.\n\nError: %s").Format(ShortName, Error), AudacityMessageBox(XO("Unable to load the \"%s\" module.\n\nError: %s").Format(ShortName, Error),
XO("Module Unsuitable")); XO("Module Unsuitable"));