From bc699ace15fc2dd2cc7ff022fa9ec6031ba09d13 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 28 Jul 2020 01:51:44 -0300 Subject: service/bsd: Handle Poll with no entries accurately Testing shows that Poll called with zero entries returns -1 and signals an errno of zero. --- src/core/hle/service/sockets/bsd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp index 1d20f33a4..803505452 100644 --- a/src/core/hle/service/sockets/bsd.cpp +++ b/src/core/hle/service/sockets/bsd.cpp @@ -465,6 +465,11 @@ std::pair BSD::PollImpl(std::vector& write_buffer, std::vector fds(nfds); std::memcpy(fds.data(), read_buffer.data(), length); -- cgit v1.2.3