Use correct exception in WlanReasonCodeToString

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2024-01-08 20:01:32 +01:00
parent 9d4cac5131
commit cbb221fce4

View File

@ -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!