diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index a5b9073294..ddfab10e6a 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -1130,13 +1130,13 @@ error_code sys_fs_fcntl(ppu_thread& ppu, u32 fd, u32 op, vm::ptr _arg, u32 std::lock_guard lock(file->mp->mutex); + if (file->lock == 2) + { + return CELL_EIO; + } + if (op == 0x8000000b && file->lock) { - if (file->lock == 2) - { - return CELL_EIO; - } - return CELL_EBUSY; }