summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar LotP12024-01-30 00:34:07 +0100
committerGravatar GitHub2024-01-30 00:34:07 +0100
commit2cc5c517cf9029c278cc07e0fb888f787b78453f (patch)
treeab6941a5a6fdc80c482ebe5921f1ddaf84a98ff3
parentUpdate sockets.h (diff)
downloadyuzu-2cc5c517cf9029c278cc07e0fb888f787b78453f.tar.gz
yuzu-2cc5c517cf9029c278cc07e0fb888f787b78453f.tar.xz
yuzu-2cc5c517cf9029c278cc07e0fb888f787b78453f.zip
Update sockets_translate.cpp
Align the error case with it's index in the Errno enum
Diffstat (limited to '')
-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) {
15 switch (value) { 15 switch (value) {
16 case Network::Errno::SUCCESS: 16 case Network::Errno::SUCCESS:
17 return Errno::SUCCESS; 17 return Errno::SUCCESS;
18 case Network::Errno::CONNREFUSED:
19 return Errno::CONNREFUSED;
20 case Network::Errno::BADF: 18 case Network::Errno::BADF:
21 return Errno::BADF; 19 return Errno::BADF;
22 case Network::Errno::AGAIN: 20 case Network::Errno::AGAIN:
@@ -27,6 +25,8 @@ Errno Translate(Network::Errno value) {
27 return Errno::MFILE; 25 return Errno::MFILE;
28 case Network::Errno::PIPE: 26 case Network::Errno::PIPE:
29 return Errno::PIPE; 27 return Errno::PIPE;
28 case Network::Errno::CONNREFUSED:
29 return Errno::CONNREFUSED;
30 case Network::Errno::NOTCONN: 30 case Network::Errno::NOTCONN:
31 return Errno::NOTCONN; 31 return Errno::NOTCONN;
32 case Network::Errno::TIMEDOUT: 32 case Network::Errno::TIMEDOUT: