less Memory::GetPointer

This commit is contained in:
Ced2911 committed 2012-11-27 10:18:36 +01:00
1 parent 2822ce2737
commit 6db4ea2ad1
11 files changed
+53 -63

No files matched your search

+2 -3
View File
@@ -452,13 +452,12 @@ void sceKernelReferThreadStatus()
if (t)
{
DEBUG_LOG(HLE,"sceKernelReferThreadStatus(%i, %08x)", threadID, PARAM(1));
void *outptr = (void*)Memory::GetPointer(PARAM(1));
u32 wantedSize = *(u32 *)outptr;
u32 wantedSize = Memory::Read_U32(PARAM(1));
u32 sz = sizeof(NativeThread);
if (wantedSize) {
t->nt.nativeSize = sz = std::min(sz, wantedSize);
}
memcpy(outptr, &(t->nt), sz);
Memory::Memcpy(PARAM(1), &(t->nt), sz);
RETURN(0);
}
else