mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +00:00
Update file_system.cpp (#3388)
This commit is contained in:
@@ -253,8 +253,8 @@ s32 PS4_SYSV_ABI close(s32 fd) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (fd < 3) {
|
if (fd < 3) {
|
||||||
// This is technically possible, but it's usually caused by some stubbed function instead.
|
*__Error() = POSIX_EPERM;
|
||||||
LOG_WARNING(Kernel_Fs, "called on an std handle, fd = {}", fd);
|
return -1;
|
||||||
}
|
}
|
||||||
if (file->type == Core::FileSys::FileType::Regular) {
|
if (file->type == Core::FileSys::FileType::Regular) {
|
||||||
file->f.Close();
|
file->f.Close();
|
||||||
|
|||||||
Reference in New Issue
Block a user