mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +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;
|
||||
}
|
||||
if (fd < 3) {
|
||||
// This is technically possible, but it's usually caused by some stubbed function instead.
|
||||
LOG_WARNING(Kernel_Fs, "called on an std handle, fd = {}", fd);
|
||||
*__Error() = POSIX_EPERM;
|
||||
return -1;
|
||||
}
|
||||
if (file->type == Core::FileSys::FileType::Regular) {
|
||||
file->f.Close();
|
||||
|
||||
Reference in New Issue
Block a user