diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-05-31 16:41:46 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-05-31 16:41:46 +0000 |
| commit | 2e36bbeb7b7471fb425aa9bb546d60787cbdba29 (patch) | |
| tree | 9387cf81b12971d03333ff15175ef1a4f0cff630 /libpcsxcore | |
| parent | 084e1fa1585f6976234dd7456897c5d98743a98d (diff) | |
| download | pcsxr-2e36bbeb7b7471fb425aa9bb546d60787cbdba29.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@67226 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/cdrom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 6e0dc890..2d5d0e70 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -214,7 +214,8 @@ void adjustTransferIndex() case MODE_SIZE_2048: bufSize = 12 + 2048; break;
}
- cdr.transferIndex %= bufSize;
+ if (cdr.transferIndex >= bufSize)
+ cdr.transferIndex %= bufSize;
}
void cdrDecodedBufferInterrupt()
@@ -2394,8 +2395,7 @@ void psxDma3(u32 madr, u32 bcr, u32 chcr) { {
int i;
- for(i = 0; i < cdsize; ++i)
- {
+ for(i = 0; i < cdsize; ++i) {
ptr[i] = cdr.Transfer[cdr.transferIndex];
cdr.transferIndex++;
adjustTransferIndex();
|
