mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Common: Fix HttpRequest::GetLastResponseCode stack corruption
Should fix https://bugs.dolphin-emu.org/issues/13353.
This commit is contained in:
parent
d16bedd5c4
commit
aa4de6516f
@ -159,9 +159,9 @@ bool HttpRequest::Impl::IsValid() const
|
|||||||
|
|
||||||
s32 HttpRequest::Impl::GetLastResponseCode()
|
s32 HttpRequest::Impl::GetLastResponseCode()
|
||||||
{
|
{
|
||||||
s32 response_code{};
|
long response_code{};
|
||||||
curl_easy_getinfo(m_curl.get(), CURLINFO_RESPONSE_CODE, &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)
|
void HttpRequest::Impl::SetCookies(const std::string& cookies)
|
||||||
|
Loading…
Reference in New Issue
Block a user