1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Fix build against wx30

Funciton wxSysErrorMsgStr() doesn't exist in wx30, so failed when
using Ubuntu system libraries.
This commit is contained in:
Leland Lucius 2020-03-29 15:58:04 -05:00
parent ff20948d57
commit 41ded2da6e

View File

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