From cbb221fce4e5bcf29502a89c4a45535eb77dba35 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 8 Jan 2024 20:01:32 +0100 Subject: [PATCH] Use correct exception in WlanReasonCodeToString Signed-off-by: Simon Rozman --- include/WinStd/WLAN.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/WinStd/WLAN.h b/include/WinStd/WLAN.h index 8e227c5a..35becd55 100644 --- a/include/WinStd/WLAN.h +++ b/include/WinStd/WLAN.h @@ -42,7 +42,7 @@ static DWORD WlanReasonCodeToString(_In_ DWORD dwReasonCode, _Inout_ std::basic_ // Increment size and allocate buffer. sSize = SIZETAdd(sSize, 1024); if (sSize > DWORD_MAX) - throw std::runtime_exception("Data too big"); + throw std::runtime_error("Data too big"); sValue.resize(sSize - 1); // Try!