From aa4de6516f8f80f9668cf33175ed8d0989c32713 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 16 Sep 2023 15:52:13 +0200 Subject: [PATCH] Common: Fix HttpRequest::GetLastResponseCode stack corruption Should fix https://bugs.dolphin-emu.org/issues/13353. --- Source/Core/Common/HttpRequest.cpp | 4 ++-- 1 file 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(response_code); } void HttpRequest::Impl::SetCookies(const std::string& cookies)