diff options
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) |