aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorDeal <[email protected]>2023-09-24 00:13:00 +0800
committerGitHub <[email protected]>2023-09-23 16:13:00 +0000
commit2e24d1ed773c2fb0f5b85acb9c02acb9c8b5462d (patch)
tree7e86027248738c1c690a89f930c9671993e2dd0c /alc
parent43d6ee50428274aff5b9aea2daf2ebf7d7fe3d0e (diff)
Fix cppwinrt exception type capture (#918)
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/wasapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index fc626fc6..ebd095fd 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -735,7 +735,7 @@ struct DeviceHelper final : private IMMNotificationClient
std::ignore = AddDevice(deviceInfo, deviceInfo.Id().data(), list);
}
}
- catch (std::exception& /*ex*/) {
+ catch (const winrt::hresult_error& /*ex*/) {
}
}
#endif