diff options
author | crupest <crupest@outlook.com> | 2019-12-13 01:02:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-12-13 01:02:47 +0800 |
commit | 9110574bb51e9e2959842a7641f598d34c3cd847 (patch) | |
tree | 96ee1f5b3c40095e4e923fc763de0663ee6a01aa /src/win/exception.cpp | |
parent | f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (diff) | |
download | cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.gz cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.bz2 cru-9110574bb51e9e2959842a7641f598d34c3cd847.zip |
...
Diffstat (limited to 'src/win/exception.cpp')
-rw-r--r-- | src/win/exception.cpp | 4 |
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) |