mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device.
This commit is contained in:
1 parent
bf1777f7d3
commit
5f3f31df6c
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