sys_ppu_thread_create break fix (#1824)

This commit is contained in:
raven02 2016-06-25 22:36:48 +08:00 committed by GitHub
parent 7779742ac1
commit 4a08e8cd0b

View File

@ -43,7 +43,7 @@ s32 sys_ppu_thread_create(vm::ptr<u64> thread_id, u32 entry, u64 arg, s32 prio,
}
// Dirty hack for sound: confirm the creation of _mxr000 event queue
if (std::memcmp(threadname.get_ptr(), "_cellsurMixerMain", 18) == 0)
if (threadname && std::memcmp(threadname.get_ptr(), "_cellsurMixerMain", 18) == 0)
{
while (!idm::select<lv2_event_queue_t>([](u32, lv2_event_queue_t& eq)
{