diff --git a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp index b7a5b8593f..b913258882 100644 --- a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp +++ b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp @@ -362,10 +362,9 @@ struct PhysicalTopologySource::Internal static bool versionNumberAddedToBlock (const juce::Array& devices, Block::UID uid, juce::String version) noexcept { - if (version.length() == 0) - for (auto&& d : devices) - if (d.uid == uid && d.version.length) - return true; + for (auto&& d : devices) + if (d.uid == uid && memcmp (d.version.version, version.toRawUTF8(), d.version.length) != 0) + return true; return false; }