mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
sceNetInet: Stop resetting inetLastErrno to 0 in sceNetInetGetErrno()
This fixes MOHH on Windows.
This commit is contained in:
1 parent
e63dbd888e
commit
016d66f866
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user