Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12181 from JosJuice/curl-response-code-long
Common: Fix HttpRequest::GetLastResponseCode stack corruption
  • Loading branch information
AdmiralCurtiss committed Sep 16, 2023
2 parents 1a82146 + aa4de65 commit cc7fadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/HttpRequest.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit cc7fadf

Please sign in to comment.