mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a null check to scePsmfPlayerGetAudioData().
Crimson Gem Saga was passing a NULL, maybe a glitch, but we do NULL checks elsewhere.
This commit is contained in:
parent
5237b77c2f
commit
f649364b2d
1 changed files with 2 additions and 1 deletions
|
@ -779,7 +779,8 @@ int scePsmfPlayerGetAudioData(u32 psmfPlayer, u32 audioDataAddr)
|
|||
return ERROR_PSMF_NOT_FOUND;
|
||||
}
|
||||
|
||||
Memory::Memset(audioDataAddr, 0, audioSamplesBytes);
|
||||
if (Memory::IsValidAddress(audioDataAddr))
|
||||
Memory::Memset(audioDataAddr, 0, audioSamplesBytes);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue