diff --git a/Core/HLE/sceNetInet.cpp b/Core/HLE/sceNetInet.cpp index 724f414cfad0..7f6d9f7500e2 100644 --- a/Core/HLE/sceNetInet.cpp +++ b/Core/HLE/sceNetInet.cpp @@ -53,7 +53,7 @@ static int sceNetInetGetErrno() { if (inetLastErrno == 0) inetLastErrno = socket_errno; int error = convertInetErrnoHost2PSP(inetLastErrno); - inetLastErrno = 0; + // We should not reset inetLastErrno to 0 here. This breaks MOHH. return hleLogSuccessInfoI(Log::sceNet, error, "at %08x", currentMIPS->pc); } @@ -61,7 +61,7 @@ static int sceNetInetGetPspError() { if (inetLastErrno == 0) inetLastErrno = socket_errno; int error = convertInetErrno2PSPError(convertInetErrnoHost2PSP(inetLastErrno)); - inetLastErrno = 0; + // We should not reset inetLastErrno to 0 here. return hleLogSuccessInfoI(Log::sceNet, error, "at %08x", currentMIPS->pc); }