diff options
| -rw-r--r-- | zencore/include/zencore/except.h | 4 | ||||
| -rw-r--r-- | zenhttp/httpsys.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h index 5e0f580f2..5b4a49364 100644 --- a/zencore/include/zencore/except.h +++ b/zencore/include/zencore/except.h @@ -79,9 +79,9 @@ GetLastError() } inline std::error_code -MakeWin32ErrorCode(uint32_t Win32ErrorCode) noexcept +MakeErrorCode(uint32_t ErrorCode) noexcept { - return std::error_code(Win32ErrorCode, std::system_category()); + return std::error_code(ErrorCode, std::system_category()); } inline std::error_code diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 80e1b8ee9..533971c4c 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -556,7 +556,7 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode) ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: {}"sv, SendResult, HttpReq->pRawUrl); - ErrorCode = MakeWin32ErrorCode(SendResult); + ErrorCode = MakeErrorCode(SendResult); } else { @@ -1231,7 +1231,7 @@ InitialRequestHandler::IssueRequest(std::error_code& ErrorCode) // CleanupHttpIoRequest(pIoRequest); - ErrorCode = MakeWin32ErrorCode(HttpApiResult); + ErrorCode = MakeErrorCode(HttpApiResult); ZEN_ERROR("HttpReceiveHttpRequest failed, error {}", ErrorCode.message()); |