mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-31 03:26:47 +01: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:
1 parent
5237b77c2f
commit
f649364b2d
1 file changed
+2
-1
@@ -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