From c901486791d3443f4e64af617bb0f0bb9a5e9894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 12 Jan 2025 12:50:32 +0100 Subject: [PATCH] Removes another hacky behavior in sceNetInetGetErrno --- Core/HLE/sceNetInet.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Core/HLE/sceNetInet.cpp b/Core/HLE/sceNetInet.cpp index 7f6d9f7500..820be24bdb 100644 --- a/Core/HLE/sceNetInet.cpp +++ b/Core/HLE/sceNetInet.cpp @@ -50,16 +50,12 @@ static int sceNetInetTerm() { } static int sceNetInetGetErrno() { - if (inetLastErrno == 0) - inetLastErrno = socket_errno; int error = convertInetErrnoHost2PSP(inetLastErrno); // We should not reset inetLastErrno to 0 here. This breaks MOHH. return hleLogSuccessInfoI(Log::sceNet, error, "at %08x", currentMIPS->pc); } static int sceNetInetGetPspError() { - if (inetLastErrno == 0) - inetLastErrno = socket_errno; int error = convertInetErrno2PSPError(convertInetErrnoHost2PSP(inetLastErrno)); // We should not reset inetLastErrno to 0 here. return hleLogSuccessInfoI(Log::sceNet, error, "at %08x", currentMIPS->pc);