fixed posix_open return code

This commit is contained in:
georgemoralis 2024-06-28 23:19:33 +03:00
parent 1e717ab046
commit b3f15dfe2e
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ int PS4_SYSV_ABI posix_open(const char* path, int flags, /* SceKernelMode*/ u16
LOG_INFO(Kernel_Fs, "posix open redirect to sceKernelOpen");
int result = sceKernelOpen(path, flags, mode);
// Posix calls different only for their return values
ASSERT(result >= 0);
if (result < 0) {
return -1;
}
return result;
}