Search the right list for WASAPI name duplicates

This commit is contained in:
Chris Robinson
2018-11-15 04:35:35 -08:00
parent 17161131e5
commit 08bee7cb58
+1 -1
View File
@@ -259,7 +259,7 @@ void add_device(IMMDevice *device, const WCHAR *devid, std::vector<DevMap> &list
int count{1};
std::string newname{basename};
while(checkName(PlaybackDevices, newname))
while(checkName(list, newname))
{
newname = basename;
newname += " #";