From 3aacc95ef8b26465d9edd028b60720e01684a54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 31 Jan 2026 13:13:03 +0100 Subject: [PATCH] Fix typo from #21157 See #21157 --- Windows/HidInputDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows/HidInputDevice.cpp b/Windows/HidInputDevice.cpp index 8e97bb8951..07bc7f4ac3 100644 --- a/Windows/HidInputDevice.cpp +++ b/Windows/HidInputDevice.cpp @@ -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