mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix crash executing the sascore test.
This commit is contained in:
parent
adf461802d
commit
2cb2601456
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ void VagDecoder::GetSamples(s16 *outSamples, int numSamples) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
u8 *readp = Memory::GetPointer(read_);
|
u8 *readp = Memory::GetPointer(read_);
|
||||||
|
if (!readp)
|
||||||
|
{
|
||||||
|
WARN_LOG(HLE, "Bad VAG samples address?");
|
||||||
|
return;
|
||||||
|
}
|
||||||
u8 *origp = readp;
|
u8 *origp = readp;
|
||||||
for (int i = 0; i < numSamples; i++) {
|
for (int i = 0; i < numSamples; i++) {
|
||||||
if (curSample == 28) {
|
if (curSample == 28) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue