From 6e0a1d9fd7843e2cb07ba95b3da6f3881bc1a8bc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 11 Mar 2021 19:13:51 +0100 Subject: [PATCH] Fix session-archive extraction on Windows Inside the archive forward slash is used as dir-separator, regardless of OS. --- libs/ardour/find_session.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/ardour/find_session.cc b/libs/ardour/find_session.cc index b0cacbdf9c..36a5cc802f 100644 --- a/libs/ardour/find_session.cc +++ b/libs/ardour/find_session.cc @@ -229,8 +229,7 @@ inflate_session (const std::string& zipfile, const std::string& target_dir, stri return 4; } - string sn = Glib::build_filename (bn, bn + statefile_suffix); - + string sn = bn + "/" + bn + statefile_suffix; if (std::find (files.begin(), files.end(), sn) == files.end()) { error << _("Archive does not contain a session file") << endmsg; return 5;