aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/sockets
diff options
context:
space:
mode:
authorcomex <[email protected]>2023-06-25 14:57:34 -0700
committercomex <[email protected]>2023-06-25 15:06:52 -0700
commit4a355699219710d0a9ad620722393b3d9a16d84d (patch)
tree69b5d25adffe30e968bdcd47c367e0c1040c4427 /src/core/hle/service/sockets
parent8905142f4362e06bd8f0a35cf9887d5110c1f308 (diff)
downloadyuzu-mainline-4a355699219710d0a9ad620722393b3d9a16d84d.tar.gz
yuzu-mainline-4a355699219710d0a9ad620722393b3d9a16d84d.zip
Fixes:
- Add missing virtual destructor on `SSLBackend`. - On Windows, filter out `POLLWRBAND` (one of the new flags added) when calling `WSAPoll`, because despite the constant being defined on Windows, passing it calls `WSAPoll` to yield `EINVAL`. - Reduce OpenSSL version requirement to satisfy CI; I haven't tested whether it actually builds (or runs) against 1.1.1, but if not, I'll figure it out. - Change an instance of memcpy to memmove, even though the arguments cannot overlap, to avoid a [strange GCC error](https://github.com/yuzu-emu/yuzu/pull/10912#issuecomment-1606283351).
Diffstat (limited to 'src/core/hle/service/sockets')
-rw-r--r--src/core/hle/service/sockets/sfdnsres.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cpp
index 1196fb86c..fb8798b42 100644
--- a/src/core/hle/service/sockets/sfdnsres.cpp
+++ b/src/core/hle/service/sockets/sfdnsres.cpp
@@ -96,7 +96,7 @@ static void Append(std::vector<u8>& vec, T t) {
static void AppendNulTerminated(std::vector<u8>& vec, std::string_view str) {
size_t off = vec.size();
vec.resize(off + str.size() + 1);
- std::memcpy(vec.data() + off, str.data(), str.size());
+ std::memmove(vec.data() + off, str.data(), str.size());
}
// We implement gethostbyname using the host's getaddrinfo rather than the