WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device.
This commit is contained in:
parent
0b17dd04e6
commit
cb463b569a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue