mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Use WriteStruct() in sceKernelReferSemaStatus().
This commit is contained in:
parent
6b51afb5fd
commit
5c69d6169f
1 changed files with 1 additions and 2 deletions
|
@ -166,8 +166,7 @@ int sceKernelReferSemaStatus(SceUID id, u32 infoPtr)
|
|||
if (s)
|
||||
{
|
||||
DEBUG_LOG(HLE,"sceKernelReferSemaStatus(%i, %08x)", id, infoPtr);
|
||||
NativeSemaphore *outptr = (NativeSemaphore*)Memory::GetPointer(infoPtr);
|
||||
memcpy((char*)outptr, (char*)&s->ns, s->ns.size);
|
||||
Memory::WriteStruct(infoPtr, &s->ns);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue