diff --git a/src/wasapi.c b/src/wasapi.c index cfc3699..9637f64 100644 --- a/src/wasapi.c +++ b/src/wasapi.c @@ -718,7 +718,7 @@ static int refresh_devices(struct SoundIoPrivate *si) { if(hr == E_OUTOFMEMORY) { return SoundIoErrorNoMem; } - return SoundIoErrorNoMem; + return SoundIoErrorOpeningDevice; } if ((err = from_lpwstr(rd.lpwstr, &rd.default_capture_id, &rd.default_capture_id_len))) { deinit_refresh_devices(&rd);