From 27b24132a0048fee17e4db2bfbe654f778b81c08 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 4 Sep 2014 23:55:06 +0400 Subject: [PATCH] sys_ppu_thread_create fix --- rpcs3/Emu/SysCalls/lv2/sys_ppu_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/SysCalls/lv2/sys_ppu_thread.cpp b/rpcs3/Emu/SysCalls/lv2/sys_ppu_thread.cpp index 209f652204..26eb32e7c9 100644 --- a/rpcs3/Emu/SysCalls/lv2/sys_ppu_thread.cpp +++ b/rpcs3/Emu/SysCalls/lv2/sys_ppu_thread.cpp @@ -153,7 +153,7 @@ s32 sys_ppu_thread_restart(u64 thread_id) s32 sys_ppu_thread_create(vm::ptr> thread_id, u32 entry, u64 arg, s32 prio, u32 stacksize, u64 flags, vm::ptr threadname) { sys_ppu_thread.Log("sys_ppu_thread_create(thread_id_addr=0x%x, entry=0x%x, arg=0x%llx, prio=%d, stacksize=0x%x, flags=0x%llx, threadname_addr=0x%x('%s'))", - thread_id.addr(), entry, arg, prio, stacksize, flags, threadname.addr(), threadname.get_ptr()); + thread_id.addr(), entry, arg, prio, stacksize, flags, threadname.addr(), threadname ? threadname.get_ptr() : ""); bool is_joinable = false; bool is_interrupt = false; @@ -184,7 +184,7 @@ s32 sys_ppu_thread_create(vm::ptr> thread_id, u32 entry, u64 arg, s32 //new_thread.flags = flags; new_thread.m_has_interrupt = false; new_thread.m_is_interrupt = is_interrupt; - new_thread.SetName(threadname.get_ptr()); + new_thread.SetName(threadname ? threadname.get_ptr() : ""); sys_ppu_thread.Notice("*** New PPU Thread [%s] (flags=0x%llx, entry=0x%x): id = %d", new_thread.GetName().c_str(), flags, entry, new_thread.GetId());