Update file_system.cpp (#3388)

This commit is contained in:
Stephen Miller
2025-08-05 11:58:23 -05:00
committed by GitHub
parent 7dd64f889f
commit 074dfe2571

View File

@@ -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();