mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-20 18:34:58 +00:00
fixed posix_open return code
This commit is contained in:
parent
1e717ab046
commit
b3f15dfe2e
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
LOG_INFO(Kernel_Fs, "posix open redirect to sceKernelOpen");
|
||||||
int result = sceKernelOpen(path, flags, mode);
|
int result = sceKernelOpen(path, flags, mode);
|
||||||
// Posix calls different only for their return values
|
// Posix calls different only for their return values
|
||||||
ASSERT(result >= 0);
|
if (result < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue