mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
sys_fs_unlink: add CELL_EISDIR check
This commit is contained in:
parent
f40320bcae
commit
0d415407c7
@ -852,6 +852,11 @@ error_code sys_fs_unlink(vm::cptr<char> path)
|
||||
return {CELL_ENOTMOUNTED, path};
|
||||
}
|
||||
|
||||
if (fs::is_dir(local_path))
|
||||
{
|
||||
return {CELL_EISDIR, path};
|
||||
}
|
||||
|
||||
if (!vfs::host::unlink(local_path))
|
||||
{
|
||||
switch (auto error = fs::g_tls_error)
|
||||
|
Loading…
Reference in New Issue
Block a user