summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLotP1 <68976644+LotP1@users.noreply.github.com>2024-01-30 00:34:07 +0100
committerGitHub <noreply@github.com>2024-01-30 00:34:07 +0100
commit2cc5c517cf9029c278cc07e0fb888f787b78453f (patch)
treeab6941a5a6fdc80c482ebe5921f1ddaf84a98ff3 /src
parentc0775e74ec2791cbb278bbe413eda6fb6e128cc4 (diff)
Update sockets_translate.cpp
Align the error case with it's index in the Errno enum
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/sockets/sockets_translate.cpp4
1 files changed, 2 insertions, 2 deletions
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: