Explorar o código

Update sockets_translate.cpp

Align the error case with it's index in the Errno enum
LotP1 %!s(int64=2) %!d(string=hai) anos
pai
achega
2cc5c517cf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/core/hle/service/sockets/sockets_translate.cpp

+ 2 - 2
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: