Set return value too

This commit is contained in:
igor725 2024-05-27 15:15:27 +03:00
parent 6d58b63d47
commit 97b29d394a
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D
2 changed files with 4 additions and 12 deletions

View File

@ -20,8 +20,9 @@ __APICALL void setError_pthread(int);
static int32_t POSIX_CALL(int32_t result) {
if (result >= 0) return result;
setError_pthread(result - (int32_t)0x80020000);
return -1;
int res = result - (int32_t)0x80020000;
setError_pthread(res);
return res;
}
static int32_t POSIX_SET(ErrCode error) {
@ -29,4 +30,4 @@ static int32_t POSIX_SET(ErrCode error) {
return -1;
}
#undef __APICALL
#undef __APICALL

View File

@ -1,9 +0,0 @@
<!doctype html>
<html>
<head>
<title>psOff - PlayStation 4 Emulation (Windows)</title>
</head>
<body>
In development
</body>
</html>