From 9110574bb51e9e2959842a7641f598d34c3cd847 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 13 Dec 2019 01:02:47 +0800 Subject: ... --- src/win/exception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/win/exception.cpp') diff --git a/src/win/exception.cpp b/src/win/exception.cpp index 4cac66bb..271067fc 100644 --- a/src/win/exception.cpp +++ b/src/win/exception.cpp @@ -7,7 +7,7 @@ using util::Format; inline std::string HResultMakeMessage(HRESULT h_result, const std::string_view* message) { - char buffer[10]; + char buffer[20]; sprintf_s(buffer, "%#08x", h_result); if (message) @@ -29,7 +29,7 @@ HResultError::HResultError(HRESULT h_result, inline std::string Win32MakeMessage(DWORD error_code, const std::string_view* message) { - char buffer[10]; + char buffer[20]; sprintf_s(buffer, "%#04x", error_code); if (message) -- cgit v1.2.3