Update file_system.cpp (#3388)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This commit is contained in:
Stephen Miller 2025-08-05 11:58:23 -05:00 committed by GitHub
parent 7dd64f889f
commit 074dfe2571
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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