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:
parent
ff20948d57
commit
41ded2da6e
@ -110,7 +110,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_LAZY | wxDL_QUIET)) {
|
||||||
auto Error = wxSysErrorMsgStr();
|
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"));
|
||||||
wxLogMessage(_("Unable to load the module \"%s\". Error: %s").Format(mName, Error));
|
wxLogMessage(_("Unable to load the module \"%s\". Error: %s").Format(mName, Error));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user