mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-19 12:40:29 +00:00
make sys_fs_closedir atomic
This commit is contained in:
parent
949f33c8a4
commit
1e5e0f3b5e
@ -602,15 +602,11 @@ error_code sys_fs_closedir(ppu_thread& ppu, u32 fd)
|
||||
|
||||
sys_fs.warning("sys_fs_closedir(fd=%d)", fd);
|
||||
|
||||
const auto directory = idm::get<lv2_fs_object, lv2_dir>(fd);
|
||||
|
||||
if (!directory)
|
||||
if (!idm::remove<lv2_fs_object, lv2_dir>(fd))
|
||||
{
|
||||
return CELL_EBADF;
|
||||
}
|
||||
|
||||
idm::remove<lv2_fs_object, lv2_dir>(fd);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user