diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-09-16 16:48:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-16 16:48:47 +0200 |
| commit | cc7fadfa4b1a8546fb5e3a12173503ab1b4d7dc0 (patch) | |
| tree | b30c821092614e26c5dfb1d44fd82617d6affc11 /Source/Core/Common/HttpRequest.cpp | |
| parent | 1a821465f4b6bdeef09e8a964a0d2ce50cf7970d (diff) | |
| parent | aa4de6516f8f80f9668cf33175ed8d0989c32713 (diff) | |
Merge pull request #12181 from JosJuice/curl-response-code-long
Common: Fix HttpRequest::GetLastResponseCode stack corruption
Diffstat (limited to 'Source/Core/Common/HttpRequest.cpp')
| -rw-r--r-- | Source/Core/Common/HttpRequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/HttpRequest.cpp b/Source/Core/Common/HttpRequest.cpp index 3dc0f1d328..afc6271542 100644 --- a/Source/Core/Common/HttpRequest.cpp +++ b/Source/Core/Common/HttpRequest.cpp @@ -159,9 +159,9 @@ bool HttpRequest::Impl::IsValid() const s32 HttpRequest::Impl::GetLastResponseCode() { - s32 response_code{}; + long response_code{}; curl_easy_getinfo(m_curl.get(), CURLINFO_RESPONSE_CODE, &response_code); - return response_code; + return static_cast<s32>(response_code); } void HttpRequest::Impl::SetCookies(const std::string& cookies) |
