mirror of
https://github.com/libretro/Play-.git
synced 2024-12-04 23:36:30 +00:00
Use GetStructPtr to obtain Deci2Handler.
This commit is contained in:
parent
d9f6fd3aa4
commit
451b14cbc7
@ -2605,7 +2605,7 @@ void CPS2OS::sc_Deci2Call()
|
||||
case 0x03:
|
||||
//Deci2Send
|
||||
{
|
||||
uint32 id = *reinterpret_cast<uint32*>(&m_ram[param + 0x00]);
|
||||
uint32 id = *reinterpret_cast<uint32*>(GetStructPtr(param + 0x00));
|
||||
|
||||
DECI2HANDLER* handler = GetDeci2Handler(id);
|
||||
|
||||
@ -2627,7 +2627,7 @@ void CPS2OS::sc_Deci2Call()
|
||||
case 0x04:
|
||||
//Deci2Poll
|
||||
{
|
||||
uint32 id = *reinterpret_cast<uint32*>(&m_ram[param + 0x00]);
|
||||
uint32 id = *reinterpret_cast<uint32*>(GetStructPtr(param + 0x00));
|
||||
|
||||
DECI2HANDLER* handler = GetDeci2Handler(id);
|
||||
if(handler->valid != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user