mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device.
This commit is contained in:
1 parent
0b17dd04e6
commit
cb463b569a
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user