From a848d8e94eb9052ae7957cc29d51a36fadc10bfd Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 9 Dec 2020 17:06:05 +0100 Subject: [PATCH] Fix the file search by filename key --- vst/SfizzFileScan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vst/SfizzFileScan.cpp b/vst/SfizzFileScan.cpp index a56f2e4a..441f9e80 100644 --- a/vst/SfizzFileScan.cpp +++ b/vst/SfizzFileScan.cpp @@ -31,7 +31,7 @@ bool SfzFileScan::locateRealFile(const fs::path& pathOrig, fs::path& pathFound) std::unique_lock lock { mutex }; refreshScan(); - auto it = file_index_.find(keyOf(pathOrig)); + auto it = file_index_.find(keyOf(pathOrig.filename())); if (it == file_index_.end()) return false;