Log sys_lwmutex/sys_lwcond names as strings

Use std::string_view instead of creating a temporary NTS string when reading object name.
This commit is contained in:
Eladash 2020-03-17 09:59:28 +02:00 committed by Ivan
parent a9f492b605
commit 03a6d67c6c
6 changed files with 30 additions and 34 deletions

View file

@ -18,7 +18,7 @@ error_code sys_lwcond_create(ppu_thread& ppu, vm::ptr<sys_lwcond_t> lwcond, vm::
attrs->pshared = SYS_SYNC_NOT_PROCESS_SHARED;
attrs->name_u64 = attr->name_u64;
if (auto res = g_cfg.core.hle_lwmutex ? sys_cond_create(ppu, out_id, lwmutex->sleep_queue, attrs) : _sys_lwcond_create(ppu, out_id, lwmutex->sleep_queue, lwcond, attr->name_u64, 0))
if (auto res = g_cfg.core.hle_lwmutex ? sys_cond_create(ppu, out_id, lwmutex->sleep_queue, attrs) : _sys_lwcond_create(ppu, out_id, lwmutex->sleep_queue, lwcond, attr->name_u64))
{
return res;
}