From dd5487034124d037f3c6bfdb327cd5a94ea1c6da Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 21 Sep 2023 18:54:50 +0200 Subject: [PATCH] Fix files selection under win32 Signed-off-by: falkTX --- html/js/modgui.js | 2 +- utils/utils_lilv.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/js/modgui.js b/html/js/modgui.js index df251141..3c659dd5 100644 --- a/html/js/modgui.js +++ b/html/js/modgui.js @@ -2660,7 +2660,7 @@ JqueryClass('customSelectPath', baseWidget, { if (!self.data('enabled')) { return self.customSelectPath('prevent', e) } - var value = opt.attr('mod-parameter-value') + var value = opt.attr('mod-parameter-value').replace('\\','\\\\') self.customSelectPath('setValue', value, false) }) }) diff --git a/utils/utils_lilv.cpp b/utils/utils_lilv.cpp index ab887352..50bd891b 100644 --- a/utils/utils_lilv.cpp +++ b/utils/utils_lilv.cpp @@ -51,7 +51,7 @@ typedef unsigned int uint; -char* realpath(const char* const name, char* const resolved) +static char* realpath(const char* const name, char* const resolved) { if (name == nullptr) return nullptr;