diff options
author | Chris Robinson <[email protected]> | 2019-02-20 00:22:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-20 00:22:19 -0800 |
commit | 99a55c445211fea77af6ab61cbc6a6ec4fbdc9b9 (patch) | |
tree | d2ce283c355cd778986686950b36bdb7828e05da /Alc | |
parent | 14cf721094228b4f02af9dbfce7a93edd3bdf706 (diff) |
Handle a missing default WASAPI device ID
Backported fix from d1a86075 on master.
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/wasapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/wasapi.c b/Alc/backends/wasapi.c index 971a1f72..b974321b 100644 --- a/Alc/backends/wasapi.c +++ b/Alc/backends/wasapi.c @@ -328,7 +328,7 @@ static HRESULT probe_devices(IMMDeviceEnumerator *devenum, EDataFlow flowdir, ve devid = get_device_id(device); if(devid) { - if(wcscmp(devid, defdevid) != 0) + if(!defdevid || wcscmp(devid, defdevid) != 0) add_device(device, devid, list); CoTaskMemFree(devid); } |