summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/utility-rawinput.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/utility-rawinput.hpp b/common/utility-rawinput.hpp
index 80d305b..c3a4576 100644
--- a/common/utility-rawinput.hpp
+++ b/common/utility-rawinput.hpp
@@ -27,7 +27,7 @@ void rawinput_foreach_dev_with_id(Func fn, bool with_instance_id = false,
auto devs = std::vector<RAWINPUTDEVICELIST>(num_devs);
if (GetRawInputDeviceList(&devs[0], &num_devs, sizeof(RAWINPUTDEVICELIST)) == RI_ERROR) {
- throw std::system_error(GetLastError(), std::system_category(), "GetRawInputDeviceList failed");
+ return;
}
std::wstring name;