From b3cf2b542458b8a22a6dd8e1547bac80fd154025 Mon Sep 17 00:00:00 2001 From: Paul Dempsey Date: Thu, 30 Nov 2023 10:37:36 -0800 Subject: [PATCH] Fix Osmose port matching (Justus Noll bug) --- src/em_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/em_device.cpp b/src/em_device.cpp index 4ab8262..b9fc323 100644 --- a/src/em_device.cpp +++ b/src/em_device.cpp @@ -211,7 +211,7 @@ bool matchInOut(const std::string& input, const std::string& output) { if (0 == input.compare(output)) return true; #if defined ARCH_WIN - if (is_osmose(input)) { + if (is_osmose(input) && is_osmose(output)) { return (0 == input.compare(0,7, "MIDIIN2", 0,7)) && (0 == output.compare(0,8, "MIDIOUT2", 0,8)); }