mirror of
https://github.com/RPCS3/rpcs3
synced 2024-09-19 08:11:22 +00:00
sys_fs: fix CELL_EIO condition in cellFsReadWithOffset
This commit is contained in:
parent
5ef3465f65
commit
55cb96ab3b
|
@ -1130,13 +1130,13 @@ error_code sys_fs_fcntl(ppu_thread& ppu, u32 fd, u32 op, vm::ptr<void> _arg, u32
|
||||||
|
|
||||||
std::lock_guard lock(file->mp->mutex);
|
std::lock_guard lock(file->mp->mutex);
|
||||||
|
|
||||||
|
if (file->lock == 2)
|
||||||
|
{
|
||||||
|
return CELL_EIO;
|
||||||
|
}
|
||||||
|
|
||||||
if (op == 0x8000000b && file->lock)
|
if (op == 0x8000000b && file->lock)
|
||||||
{
|
{
|
||||||
if (file->lock == 2)
|
|
||||||
{
|
|
||||||
return CELL_EIO;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CELL_EBUSY;
|
return CELL_EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue