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