mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Fix some bugs and warnings from a pass of static analysis
This commit is contained in:
1 parent
722178e205
commit
d6ebfed432
25 files changed
+72
-49
No files matched your search
@@ -384,7 +384,7 @@ static std::set<u32> DetectXInputVIDPIDs() {
|
||||
|
||||
while (SUCCEEDED(pEnumDevices->Next(10000, 32, pDevices, &uReturned)) && uReturned > 0) {
|
||||
for (ULONG i = 0; i < uReturned; i++) {
|
||||
VARIANT var;
|
||||
VARIANT var{};
|
||||
if (SUCCEEDED(pDevices[i]->Get(L"DeviceID", 0, &var, nullptr, nullptr)))
|
||||
{
|
||||
if (wcsstr(var.bstrVal, L"IG_"))
|
||||
|
||||
Reference in new issue
Block a user