Fix typo from #21157

See #21157
This commit is contained in:
Henrik Rydgård
2026-01-31 13:13:03 +01:00
parent d4e6295d31
commit 3aacc95ef8
+2 -2
View File
@@ -188,14 +188,14 @@ static const HIDControllerInfo g_psInfos[] = {
static const HIDControllerInfo *GetGamepadInfo(HANDLE handle) {
HIDD_ATTRIBUTES attr{sizeof(HIDD_ATTRIBUTES)};
if (!HidD_GetAttributes(handle, &attr)) {
return false;
return nullptr;
}
for (const auto &info : g_psInfos) {
if (attr.VendorID == info.vendorId && attr.ProductID == info.productId) {
return &info;
}
}
return false;
return nullptr;
}
template<class T>