exception throwing fix in sys_lwmutex_create

arg6 doesnt exist, if arg4 is not negative name is discarded and treated as 0.
This commit is contained in:
eladash 2019-02-22 14:45:01 +02:00 committed by Ivan
parent d4459af4b3
commit a22297f205
3 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ error_code sys_lwmutex_create(vm::ptr<sys_lwmutex_t> lwmutex, vm::ptr<sys_lwmute
attrs->flags = 0;
attrs->name_u64 = attr->name_u64;
if (error_code res = g_cfg.core.hle_lwmutex ? sys_mutex_create(out_id, attrs) : _sys_lwmutex_create(out_id, protocol, lwmutex, 0x80000001, attr->name_u64, 0))
if (error_code res = g_cfg.core.hle_lwmutex ? sys_mutex_create(out_id, attrs) : _sys_lwmutex_create(out_id, protocol, lwmutex, 0x80000001, attr->name_u64))
{
return res;
}