mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 15:13:37 +02: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user