diff options
author | Chris Robinson <[email protected]> | 2018-11-15 04:35:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 04:35:35 -0800 |
commit | 08bee7cb586abe53ebd36d4d54160a12bf9d6dfa (patch) | |
tree | 85b89dbd88f53f5f8033e8f09cb51d3181e56170 /Alc/backends | |
parent | 17161131e5f3309d6b2f27834102d3ca83b67afc (diff) |
Search the right list for WASAPI name duplicates
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/wasapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<DevMap> &list int count{1}; std::string newname{basename}; - while(checkName(PlaybackDevices, newname)) + while(checkName(list, newname)) { newname = basename; newname += " #"; |