From 41ded2da6ec44f76c1805f1e0e6a11fb63ffc499 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sun, 29 Mar 2020 15:58:04 -0500 Subject: [PATCH] Fix build against wx30 Funciton wxSysErrorMsgStr() doesn't exist in wx30, so failed when using Ubuntu system libraries. --- src/ModuleManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModuleManager.cpp b/src/ModuleManager.cpp index 9f6bc6734..fea4f5750 100755 --- a/src/ModuleManager.cpp +++ b/src/ModuleManager.cpp @@ -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));