From 70ce7ee106ecc95ab0c5e55448b500dbe4b0b3e6 Mon Sep 17 00:00:00 2001 From: brian218 Date: Sun, 25 Jun 2023 10:09:29 +0800 Subject: [PATCH] sys_fs: Fixed up one of sys_fs_unmount()'s error codes to match real system behavior --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index 9ffdee3f23..ade04932b4 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -3225,7 +3225,7 @@ error_code sys_fs_unmount(ppu_thread& ppu, vm::cptr path, s32 unk1, s32 un return {CELL_EPERM, vpath}; if (mp == &g_mp_sys_no_device) - return {CELL_ENOTMOUNTED, vpath}; + return {CELL_EINVAL, vpath}; if (mp == &g_mp_sys_dev_root || !lock.try_lock()) return {CELL_EBUSY, vpath};