mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-23 03:02:53 +01:00
sys_fs_fsync fix
This commit is contained in:
parent
e2478902c9
commit
e8d76ede14
@ -1020,7 +1020,7 @@ error_code sys_fs_fdatasync(u32 fd)
|
||||
|
||||
const auto file = idm::get<lv2_fs_object, lv2_file>(fd);
|
||||
|
||||
if (!file)
|
||||
if (!file || !(file->flags & CELL_FS_O_ACCMODE))
|
||||
{
|
||||
return CELL_EBADF;
|
||||
}
|
||||
@ -1036,7 +1036,7 @@ error_code sys_fs_fsync(u32 fd)
|
||||
|
||||
const auto file = idm::get<lv2_fs_object, lv2_file>(fd);
|
||||
|
||||
if (!file)
|
||||
if (!file || !(file->flags & CELL_FS_O_ACCMODE))
|
||||
{
|
||||
return CELL_EBADF;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user