From c9afd39845f7a52850f757f8c3f0ecca5af41350 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sun, 28 Mar 2021 14:02:21 -0500 Subject: [PATCH] Bug 2723 - VST_PATH environment variable fails for non-standard locations --- src/effects/VST/VSTEffect.cpp | 2 +- src/effects/ladspa/LadspaEffect.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/VST/VSTEffect.cpp b/src/effects/VST/VSTEffect.cpp index 24b6185ad..5e6d8829e 100644 --- a/src/effects/VST/VSTEffect.cpp +++ b/src/effects/VST/VSTEffect.cpp @@ -402,7 +402,7 @@ PluginPaths VSTEffectsModule::FindPluginPaths(PluginManagerInterface & pm) wxString vstpath = wxString::FromUTF8(getenv("VST_PATH")); if (!vstpath.empty()) { - wxStringTokenizer tok(vstpath); + wxStringTokenizer tok(vstpath, wxPATH_SEP); while (tok.HasMoreTokens()) { pathList.push_back(tok.GetNextToken()); diff --git a/src/effects/ladspa/LadspaEffect.cpp b/src/effects/ladspa/LadspaEffect.cpp index a5e38daa7..1580a8e98 100644 --- a/src/effects/ladspa/LadspaEffect.cpp +++ b/src/effects/ladspa/LadspaEffect.cpp @@ -363,7 +363,7 @@ FilePaths LadspaEffectsModule::GetSearchPaths() pathVar = wxString::FromUTF8(getenv("LADSPA_PATH")); if (!pathVar.empty()) { - wxStringTokenizer tok(pathVar); + wxStringTokenizer tok(pathVar, wxPATH_SEP); while (tok.HasMoreTokens()) { pathList.push_back(tok.GetNextToken());