From 08bee7cb586abe53ebd36d4d54160a12bf9d6dfa Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 Nov 2018 04:35:35 -0800 Subject: Search the right list for WASAPI name duplicates --- Alc/backends/wasapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index b55187ab..64e7d43c 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -259,7 +259,7 @@ void add_device(IMMDevice *device, const WCHAR *devid, std::vector &list int count{1}; std::string newname{basename}; - while(checkName(PlaybackDevices, newname)) + while(checkName(list, newname)) { newname = basename; newname += " #"; -- cgit v1.2.3