WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device.

This commit is contained in:
Henrik Rydgård committed 2019-10-15 09:47:48 +02:00
1 parent bf1777f7d3
commit 5f3f31df6c
1 file changed
+2 -1
+2 -1
View File
@@ -91,7 +91,8 @@ public:
return S_OK;
}
if (!wcscmp(currentDevice_, pwstrDeviceId)) {
// pwstrDeviceId can be null. We consider that a new device, I think?
if (pwstrDeviceId && !wcscmp(currentDevice_, pwstrDeviceId)) {
// Already the current device, nothing to do.
return S_OK;
}