aboutsummaryrefslogtreecommitdiff
path: root/src/win/exception.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-13 01:02:47 +0800
committercrupest <crupest@outlook.com>2019-12-13 01:02:47 +0800
commit9110574bb51e9e2959842a7641f598d34c3cd847 (patch)
tree96ee1f5b3c40095e4e923fc763de0663ee6a01aa /src/win/exception.cpp
parentf2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (diff)
downloadcru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.gz
cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.bz2
cru-9110574bb51e9e2959842a7641f598d34c3cd847.zip
...
Diffstat (limited to 'src/win/exception.cpp')
-rw-r--r--src/win/exception.cpp4
1 files changed, 2 insertions, 2 deletions
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)