Small bug in DirectSound - findBestMatchForName()

in juce_win32_DirectSound.cpp, line 979 :

for (int j = tokens1.size(); --j >= 0;) if (tokens2.contains (tokens1[i])) ++matches;

should be :

for (int j = tokens1.size(); --j >= 0;)
            if (tokens2.contains (tokens1[j]))
                ++matches;[/code]

wow - yes, you’re quite right. :oops: