From 2cc5c517cf9029c278cc07e0fb888f787b78453f Mon Sep 17 00:00:00 2001 From: LotP1 <68976644+LotP1@users.noreply.github.com> Date: Tue, 30 Jan 2024 00:34:07 +0100 Subject: Update sockets_translate.cpp Align the error case with it's index in the Errno enum --- src/core/hle/service/sockets/sockets_translate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/hle/service/sockets/sockets_translate.cpp b/src/core/hle/service/sockets/sockets_translate.cpp index ea0b081c2..21bb3e776 100644 --- a/src/core/hle/service/sockets/sockets_translate.cpp +++ b/src/core/hle/service/sockets/sockets_translate.cpp @@ -15,8 +15,6 @@ Errno Translate(Network::Errno value) { switch (value) { case Network::Errno::SUCCESS: return Errno::SUCCESS; - case Network::Errno::CONNREFUSED: - return Errno::CONNREFUSED; case Network::Errno::BADF: return Errno::BADF; case Network::Errno::AGAIN: @@ -27,6 +25,8 @@ Errno Translate(Network::Errno value) { return Errno::MFILE; case Network::Errno::PIPE: return Errno::PIPE; + case Network::Errno::CONNREFUSED: + return Errno::CONNREFUSED; case Network::Errno::NOTCONN: return Errno::NOTCONN; case Network::Errno::TIMEDOUT: -- cgit v1.2.3